|
| | Matrix () |
| |
| | Matrix (const MPI_Comm &comm) |
| |
| | Matrix (size_t n_row, size_t n_col) |
| |
| | Matrix (const MPI_Comm &comm, size_t n_row, size_t n_col) |
| |
| void | init (size_t n_row, size_t n_col) |
| |
| const MPI_Comm & | get_comm () const |
| |
| int | get_comm_size () const |
| |
| int | get_comm_rank () const |
| |
| void | print_info (std::ostream &) const |
| |
| const C & | operator[] (size_t i) const |
| |
| C & | operator[] (size_t i) |
| |
| const C * | head () const |
| |
| C * | head () |
| |
| size_t | local_size () const |
| |
| void | global_index (size_t i, size_t &g_row, size_t &g_col) const |
| |
| bool | local_index (size_t g_row, size_t g_col, size_t &i) const |
| |
| void | local_position (size_t g_row, size_t g_col, int &comm_rank, size_t &lindex) const |
| |
| size_t | local_row_size () const |
| |
| size_t | local_col_size () const |
| |
| size_t | local_row_index (size_t lindex) const |
| |
| size_t | local_col_index (size_t lindex) const |
| |
| size_t | global_row_index (size_t lindex_row) const |
| |
| size_t | global_col_index (size_t lindex_col) const |
| |
| Matrix & | operator+= (const Matrix &rhs) |
| |
| Matrix & | operator-= (const Matrix &rhs) |
| |
| Matrix & | operator*= (C rhs) |
| |
| Matrix & | operator/= (C rhs) |
| |
| template<typename UnaryOperation > |
| Matrix & | map (UnaryOperation op) |
| |
| std::vector< C > | flatten () |
| |
| void | barrier () const |
| |
| C | allreduce_sum (C value) const |
| |
| template<typename D > |
| void | bcast (D *buffer, int count, int root) const |
| |
| void | prep_local_to_global () const |
| | Preprocess for fast conversion from local index to global one.
|
| |
| void | prep_global_to_local () const |
| | Preprocess for fast conversion from global index to local one.
|
| |
| int | n_row () const |
| |
| int | n_col () const |
| |
| const int * | descriptor () const |
| |
| const Matrix | transpose () |
| |
| void | save_index (const std::string &filename) const |
| |
template<
typename C>
class mptensor::scalapack::Matrix< C >
Distributed matrix using ScaLAPACK.