Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
spsum_tsr.cxx File Reference
#include "../shared/util.h"
#include "spsum_tsr.h"
#include "spr_seq_sum.h"
#include "../interface/fun_term.h"
#include "../interface/idx_tensor.h"
Include dependency graph for spsum_tsr.cxx:

Go to the source code of this file.

Namespaces

 CTF_int
 

Macros

#define SET_LDA_X(__X)
 

Functions

void CTF_int::inv_idx (int order_A, int const *idx_A, int order_B, int const *idx_B, int *order_tot, int **idx_arr)
 invert index map More...
 

Macro Definition Documentation

#define SET_LDA_X (   __X)
Value:
do { \
nb_##__X = 1; \
for (i=0; i<order_##__X; i++){ \
lda_##__X[i] = nb_##__X; \
nb_##__X = nb_##__X*virt_dim[idx_map_##__X[i]]; \
} \
memset(ilda_##__X, 0, num_dim*sizeof(int)); \
for (i=0; i<order_##__X; i++){ \
ilda_##__X[idx_map_##__X[i]] += lda_##__X[i]; \
} \
} while (0)

Referenced by CTF_int::tspsum_virt::run().