Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
sparse_permuted_slice

Randomly permuted block write of symmetric matrices from matrix on COMM_SELF to symmetric matrix on COMM_WORLD. More...

Collaboration diagram for sparse_permuted_slice:

Functions

int sparse_permuted_slice (int n, int b, int sym, World &dw)
 tests sparse remote global write via permute function More...
 
char * getCmdOption (char **begin, char **end, const std::string &option)
 
int main (int argc, char **argv)
 

Detailed Description

Randomly permuted block write of symmetric matrices from matrix on COMM_SELF to symmetric matrix on COMM_WORLD.

Function Documentation

char* getCmdOption ( char **  begin,
char **  end,
const std::string &  option 
)

Definition at line 147 of file sparse_permuted_slice.cxx.

Referenced by main().

int main ( int  argc,
char **  argv 
)
int sparse_permuted_slice ( int  n,
int  b,
int  sym,
World dw 
)

tests sparse remote global write via permute function

Parameters
[in]ndimension of global matrix
[in]brough dimension of sparse blocks to write from each processor
[in]symsymmetry of the global matrix (and of each block)
[in]dwworld/communicator on which to define the global matrix

Definition at line 18 of file sparse_permuted_slice.cxx.

References ctf.core::b, CTF::Tensor< dtype >::get_local_data(), CTF::Tensor< dtype >::norm2(), ctf.core::np(), NS, CTF::Tensor< dtype >::permute(), ctf.core::rank(), and CTF::Tensor< dtype >::write().

Referenced by main().