Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
|
tests custom element-wise functions by implementing division elementwise on 4D tensors More...
Functions | |
double | f2 (double a, double b) |
int | bivar_function (int n, 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
int bivar_function | ( | int | n, |
World & | dw | ||
) |
Definition at line 17 of file bivar_function.cxx.
References ctf.core::a, ctf.core::b, f2(), CTF::Tensor< dtype >::fill_random(), NS, CTF::World::rank, and CTF::Tensor< dtype >::read_all().
Referenced by main(), and ctf.core::MPI_Stop().
double f2 | ( | double | a, |
double | b | ||
) |
Definition at line 13 of file bivar_function.cxx.
References ctf.core::a.
Referenced by bivar_function(), train_dns_vec_mat(), and train_sps_vec_mat().
char* getCmdOption | ( | char ** | begin, |
char ** | end, | ||
const std::string & | option | ||
) |
Definition at line 71 of file bivar_function.cxx.
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 82 of file bivar_function.cxx.
References bivar_function(), getCmdOption(), ctf.core::np(), and ctf.core::rank().