Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
|
tests custom element-wise functions by implementing division elementwise on 4D tensors More...
Functions | |
double | divide (double a, double b) |
int | weigh_4D (int const n, int const sym, World &dw) |
char * | getCmdOption (char **begin, char **end, const std::string &option) |
int | main (int argc, char **argv) |
tests custom element-wise functions by implementing division elementwise on 4D tensors
double divide | ( | double | a, |
double | b | ||
) |
char* getCmdOption | ( | char ** | begin, |
char ** | end, | ||
const std::string & | option | ||
) |
Definition at line 86 of file weigh_4D.cxx.
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 97 of file weigh_4D.cxx.
References AS, getCmdOption(), ctf.core::np(), NS, ctf.core::rank(), SY, and weigh_4D().
int weigh_4D | ( | int const | n, |
int const | sym, | ||
World & | dw | ||
) |
Definition at line 17 of file weigh_4D.cxx.
References CTF::Tensor< dtype >::contract(), divide(), CTF::Tensor< dtype >::get_local_data(), ctf.core::np(), NS, ctf.core::rank(), CTF::Tensor< dtype >::read(), and CTF::Tensor< dtype >::write().
Referenced by main().