Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
|
Multiplication of a random square sparse matrix by a vector. More...
Functions | |
int | spmv (int n, World &dw) |
char * | getCmdOption (char **begin, char **end, const std::string &option) |
int | main (int argc, char **argv) |
Multiplication of a random square sparse matrix by a vector.
char* getCmdOption | ( | char ** | begin, |
char ** | end, | ||
const std::string & | option | ||
) |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 66 of file spmv.cxx.
References getCmdOption(), ctf.core::np(), ctf.core::rank(), and spmv().
int spmv | ( | int | n, |
World & | dw | ||
) |
Definition at line 11 of file spmv.cxx.
References ctf.core::b, CTF::Tensor< dtype >::fill_random(), CTF::Tensor< dtype >::norm2(), CTF::World::rank, SP, and CTF::Tensor< dtype >::sparsify().
Referenced by main().