Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
|
Jacobi iterative method using gemv and spmv. More...
Functions | |
void | jacobi_iter (Matrix<> &R, Vector<> &b, Vector<> &d, Vector<> &x) |
int | jacobi (int n, World &dw) |
char * | getCmdOption (char **begin, char **end, const std::string &option) |
int | main (int argc, char **argv) |
Jacobi iterative method using gemv and spmv.
char* getCmdOption | ( | char ** | begin, |
char ** | end, | ||
const std::string & | option | ||
) |
Definition at line 103 of file jacobi.cxx.
Referenced by main().
int jacobi | ( | int | n, |
World & | dw | ||
) |
Definition at line 19 of file jacobi.cxx.
References ctf.core::b, CTF::Tensor< dtype >::fill_random(), jacobi_iter(), CTF::Tensor< dtype >::norm2(), CTF::World::rank, SP, and CTF::Tensor< dtype >::sparsify().
Referenced by main(), and smooth_jacobi().
Definition at line 13 of file jacobi.cxx.
Referenced by jacobi().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 114 of file jacobi.cxx.
References getCmdOption(), jacobi(), ctf.core::np(), and ctf.core::rank().