Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
|
Go to the source code of this file.
Functions | |
void | Cblacs_pinfo (int *, int *) |
void | Cblacs_get (int, int, int *) |
void | Cblacs_gridinit (int *, char *, int, int) |
void | Cblacs_gridinfo (int, int *, int *, int *, int *) |
void | Cblacs_gridmap (int *, int *, int, int, int) |
void | Cblacs_barrier (int, char *) |
void | Cblacs_gridexit (int) |
void | fold_unfold (Tensor<> &X, Tensor<> &Y) |
std::vector< Matrix<> > | get_factor_matrices (Tensor<> &T, int ranks[], World &dw) |
Tensor | get_core_tensor (Tensor<> &T, std::vector< Matrix<> > factor_matrices, int ranks[], World &dw) |
void | hosvd (Tensor<> &T, Tensor<> &core, std::vector< Matrix<> > factor_matrices, int *ranks, World &dw) |
Tensor | get_core_tensor_hooi (Tensor<> &T, std::vector< Matrix<> > factor_matrices, int ranks[], World &dw, int j=-1) |
void | hooi (Tensor<> &T, Tensor<> &core, std::vector< Matrix<> > factor_matrices, int *ranks, World &dw) |
int | main (int argc, char **argv) |
Variables | |
int | icontxt |
void Cblacs_barrier | ( | int | , |
char * | |||
) |
Referenced by CTF_SCALAPACK::cblacs_barrier().
void Cblacs_get | ( | int | , |
int | , | ||
int * | |||
) |
Referenced by CTF_SCALAPACK::cblacs_get(), and main().
void Cblacs_gridexit | ( | int | ) |
Referenced by CTF_SCALAPACK::cblacs_gridexit().
void Cblacs_gridinfo | ( | int | , |
int * | , | ||
int * | , | ||
int * | , | ||
int * | |||
) |
Referenced by CTF_SCALAPACK::cblacs_gridinfo().
void Cblacs_gridinit | ( | int * | , |
char * | , | ||
int | , | ||
int | |||
) |
Referenced by CTF_SCALAPACK::cblacs_gridinit(), and main().
void Cblacs_gridmap | ( | int * | , |
int * | , | ||
int | , | ||
int | , | ||
int | |||
) |
Referenced by CTF_SCALAPACK::cblacs_gridmap().
void Cblacs_pinfo | ( | int * | , |
int * | |||
) |
Referenced by CTF_SCALAPACK::cblacs_pinfo().
Definition at line 33 of file hosvd.cxx.
References CTF::Tensor< dtype >::read_local(), and CTF::Tensor< dtype >::write().
Tensor get_core_tensor | ( | Tensor<> & | T, |
std::vector< Matrix<> > | factor_matrices, | ||
int | ranks[], | ||
World & | dw | ||
) |
Definition at line 111 of file hosvd.cxx.
References CTF_int::tensor::lens, CTF_int::tensor::order, and ctf.core::transpose().
Tensor get_core_tensor_hooi | ( | Tensor<> & | T, |
std::vector< Matrix<> > | factor_matrices, | ||
int | ranks[], | ||
World & | dw, | ||
int | j = -1 |
||
) |
Definition at line 159 of file hosvd.cxx.
References CTF_int::tensor::lens, CTF_int::tensor::order, and ctf.core::transpose().
Referenced by hooi().
Definition at line 44 of file hosvd.cxx.
References CTF::fold_unfold(), CTF_int::tensor::lens, CTF_int::tensor::order, and CTF::Matrix< dtype >::svd().
void hooi | ( | Tensor<> & | T, |
Tensor<> & | core, | ||
std::vector< Matrix<> > | factor_matrices, | ||
int * | ranks, | ||
World & | dw | ||
) |
Definition at line 218 of file hosvd.cxx.
References get_core_tensor_hooi(), CTF::get_factor_matrices(), and CTF_int::tensor::order.
void hosvd | ( | Tensor<> & | T, |
Tensor<> & | core, | ||
std::vector< Matrix<> > | factor_matrices, | ||
int * | ranks, | ||
World & | dw | ||
) |
Definition at line 154 of file hosvd.cxx.
References CTF::get_core_tensor(), and CTF::get_factor_matrices().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 229 of file hosvd.cxx.
References Cblacs_get(), Cblacs_gridinit(), CTF::Tensor< dtype >::fill_random(), icontxt, ctf.core::np(), CTF::Tensor< dtype >::print(), CTF::Matrix< dtype >::print_matrix(), ctf.core::rank(), and CTF::Matrix< dtype >::svd().