|
Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
|
tests trace over diagonal of Matrices More...
|
Functions | |
| int | trace (int const n, World &dw) |
| char * | getCmdOption (char **begin, char **end, const std::string &option) |
| int | main (int argc, char **argv) |
tests trace over diagonal of Matrices
| char* getCmdOption | ( | char ** | begin, |
| char ** | end, | ||
| const std::string & | option | ||
| ) |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 105 of file trace.cxx.
References getCmdOption(), ctf.core::np(), ctf.core::rank(), and trace().
| int trace | ( | int const | n, |
| World & | dw | ||
| ) |
Definition at line 12 of file trace.cxx.
References CTF::Tensor< dtype >::get_local_data(), ctf.core::np(), NS, CTF::OP_SUM, ctf.core::rank(), CTF::Tensor< dtype >::reduce(), and CTF::Tensor< dtype >::write().
Referenced by main().