|
| | Matrix () |
| | Default constructor.
|
| |
| | Matrix (const comm_type &comm_dummy) |
| | Constructor.
|
| |
| | Matrix (size_t n_row, size_t n_col) |
| | Constructor.
|
| |
| | Matrix (const comm_type &comm_dummy, size_t n_row, size_t n_col) |
| | Constructor.
|
| |
| void | init (size_t n_row, size_t n_col) |
| |
| const comm_type & | get_comm () const |
| | Always returns 0.
|
| |
| int | get_comm_size () const |
| | Always returns 1.
|
| |
| int | get_comm_rank () const |
| | Always returns 0.
|
| |
| 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 |
| | Convert a global index to an index of local storage.
|
| |
| 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 |
| | Do nothing.
|
| |
| void | prep_global_to_local () const |
| | Do nothing.
|
| |
| int | n_row () const |
| |
| int | n_col () const |
| |
| const Matrix | transpose () |
| |
| void | save_index (const std::string &filename) const |
| |
| template<typename UnaryOperation > |
| Matrix< C > & | map (UnaryOperation op) |
| |
| template<typename UnaryOperation > |
| Matrix< C > & | map (UnaryOperation op) |
| |
template<
typename C>
class mptensor::lapack::Matrix< C >
Non-distributed matrix using LAPACK.
- Note
- The matrix is stored in column-major order.