Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
fast_tensor_ctr

A clever way to multiply symmetric tensors. More...

Collaboration diagram for fast_tensor_ctr:

Functions

bool check_sym (Tensor<> &tsr)
 
int64_t fact (int64_t n)
 
int64_t choose (int64_t n, int64_t k)
 
int64_t chchoose (int64_t n, int64_t k)
 
void chi (char const *idx, int idx_len, int p_len, int q_len, int *npair, char ***idx_p, char ***idx_q)
 
void chi (char const *idx, int idx_len, int p_len, int *npair, char ***idx_p)
 
int fast_tensor_ctr (int n, int s, int t, int v, World &ctf)
 
char * getCmdOption (char **begin, char **end, const std::string &option)
 
int main (int argc, char **argv)
 

Detailed Description

A clever way to multiply symmetric tensors.

Function Documentation

int64_t chchoose ( int64_t  n,
int64_t  k 
)

Definition at line 47 of file fast_tensor_ctr.cxx.

References fact().

void chi ( char const *  idx,
int  idx_len,
int  p_len,
int  q_len,
int *  npair,
char ***  idx_p,
char ***  idx_q 
)

Definition at line 51 of file fast_tensor_ctr.cxx.

References choose(), and ctf.core::np().

Referenced by chi(), and fast_tensor_ctr().

void chi ( char const *  idx,
int  idx_len,
int  p_len,
int *  npair,
char ***  idx_p 
)

Definition at line 180 of file fast_tensor_ctr.cxx.

References chi().

int64_t choose ( int64_t  n,
int64_t  k 
)

Definition at line 43 of file fast_tensor_ctr.cxx.

References fact().

Referenced by chi(), and fast_tensor_ctr().

int64_t fact ( int64_t  n)

Definition at line 35 of file fast_tensor_ctr.cxx.

Referenced by chchoose(), and choose().

int fast_tensor_ctr ( int  n,
int  s,
int  t,
int  v,
World ctf 
)
char* getCmdOption ( char **  begin,
char **  end,
const std::string &  option 
)

Definition at line 449 of file fast_tensor_ctr.cxx.

Referenced by main().

int main ( int  argc,
char **  argv 
)