Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
|
Summation along tensor diagonals. More...
Functions | |
int | diag_ctr (int n, int m, World &dw) |
char * | getCmdOption (char **begin, char **end, const std::string &option) |
int | main (int argc, char **argv) |
Summation along tensor diagonals.
int diag_ctr | ( | int | n, |
int | m, | ||
World & | dw | ||
) |
Definition at line 13 of file diag_ctr.cxx.
References CTF::Tensor< dtype >::get_local_data(), ctf.core::np(), NS, ctf.core::rank(), and CTF::Tensor< dtype >::write().
Referenced by main().
char* getCmdOption | ( | char ** | begin, |
char ** | end, | ||
const std::string & | option | ||
) |
Definition at line 65 of file diag_ctr.cxx.
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 76 of file diag_ctr.cxx.
References diag_ctr(), getCmdOption(), ctf.core::np(), and ctf.core::rank().