|
Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
|
A clever way to multiply symmetric tensors. More...
|
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) |
A clever way to multiply symmetric tensors.
| int64_t chchoose | ( | int64_t | n, |
| int64_t | k | ||
| ) |
Definition at line 47 of file fast_tensor_ctr.cxx.
References fact().
| bool check_sym | ( | Tensor<> & | tsr | ) |
Definition at line 12 of file fast_tensor_ctr.cxx.
References ctf.core::dim, CTF_int::tensor::lens, CTF::Tensor< dtype >::norm2(), CTF_int::tensor::order, CTF_int::tensor::sym, and CTF_int::tensor::wrld.
Referenced by fast_tensor_ctr().
| 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 | ||
| ) |
Definition at line 191 of file fast_tensor_ctr.cxx.
References check_sym(), chi(), choose(), CTF::World::comm, CTF::Tensor< dtype >::norm2(), NS, ctf.core::rank(), CTF::Tensor< dtype >::read_local(), and CTF::Tensor< dtype >::write().
Referenced by main().
| 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 | ||
| ) |
Definition at line 460 of file fast_tensor_ctr.cxx.
References fast_tensor_ctr(), getCmdOption(), ctf.core::np(), and ctf.core::rank().