| Cyclops Tensor Framework
    parallel arithmetic on multidimensional arrays | 
A clever way to multiply symmetric tensors. More...
|   | 
| Functions | |
| int | parity (char const *a, char const *b, char const *c, int len_A, int len_B) | 
| int | parity (char const *a, char const *c, int len_A, int len_C) | 
| double | sign (int par) | 
| void | get_rand_as_tsr (Tensor<> &tsr, int seed) | 
| bool | check_asym (Tensor<> &tsr) | 
| 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 178 of file fast_sy_as_as_tensor_ctr.cxx.
References fact().
| bool check_asym | ( | Tensor<> & | tsr | ) | 
Definition at line 120 of file fast_sy_as_as_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().
| bool check_sym | ( | Tensor<> & | tsr | ) | 
Definition at line 143 of file fast_sy_as_as_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 182 of file fast_sy_as_as_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 311 of file fast_sy_as_as_tensor_ctr.cxx.
References chi().
| int64_t choose | ( | int64_t | n, | 
| int64_t | k | ||
| ) | 
Definition at line 174 of file fast_sy_as_as_tensor_ctr.cxx.
References fact().
Referenced by chi(), and fast_tensor_ctr().
| int64_t fact | ( | int64_t | n | ) | 
Definition at line 166 of file fast_sy_as_as_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 322 of file fast_sy_as_as_tensor_ctr.cxx.
References check_asym(), check_sym(), chi(), choose(), CTF::World::comm, get_rand_as_tsr(), CTF::Tensor< dtype >::norm2(), NS, CTF_int::tensor::order, parity(), ctf.core::rank(), and sign().
Referenced by main().
| void get_rand_as_tsr | ( | Tensor<> & | tsr, | 
| int | seed | ||
| ) | 
Definition at line 76 of file fast_sy_as_as_tensor_ctr.cxx.
References ctf.core::dim, CTF_int::tensor::lens, CTF_int::tensor::order, parity(), CTF::Tensor< dtype >::read_local(), sign(), CTF_int::tensor::sym, CTF::Tensor< dtype >::write(), and CTF_int::tensor::wrld.
Referenced by fast_tensor_ctr().
| char* getCmdOption | ( | char ** | begin, | 
| char ** | end, | ||
| const std::string & | option | ||
| ) | 
Definition at line 592 of file fast_sy_as_as_tensor_ctr.cxx.
Referenced by main().
| int main | ( | int | argc, | 
| char ** | argv | ||
| ) | 
Definition at line 603 of file fast_sy_as_as_tensor_ctr.cxx.
References fast_tensor_ctr(), getCmdOption(), ctf.core::np(), and ctf.core::rank().
| int parity | ( | char const * | a, | 
| char const * | b, | ||
| char const * | c, | ||
| int | len_A, | ||
| int | len_B | ||
| ) | 
Definition at line 13 of file fast_sy_as_as_tensor_ctr.cxx.
Referenced by fast_tensor_ctr(), get_rand_as_tsr(), and parity().
| int parity | ( | char const * | a, | 
| char const * | c, | ||
| int | len_A, | ||
| int | len_C | ||
| ) | 
Definition at line 49 of file fast_sy_as_as_tensor_ctr.cxx.
References ctf.core::b, and parity().
| double sign | ( | int | par | ) | 
Definition at line 69 of file fast_sy_as_as_tensor_ctr.cxx.
Referenced by fast_tensor_ctr(), and get_rand_as_tsr().