explicit_mapmaking
 All Classes Files Pages
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
mapmaking::Matrix Class Reference
Inheritance diagram for mapmaking::Matrix:
Inheritance graph
[legend]
Collaboration diagram for mapmaking::Matrix:
Collaboration graph
[legend]

Public Member Functions

 Matrix (Grid *grid, int n_row, int n_col)
 
Matrix Dot (Matrix &right, char trans_left='N', char trans_right='N')
 
std::vector< double > * local_part ()
 
int n_row () const
 
int n_col () const
 
Gridgrid ()
 
std::vector< int > * desc ()
 
void PrintLocalPart ()
 
void PrintMatrix ()
 
void TestAllocation ()
 
void TestAllocationVector ()
 
void SaveMatrix (fs::path folder)
 
std::vector< double > GetColumn (int i_col)
 
void LoadMatrix (std::vector< double > &matrix, int root_proc)
 
Matrixoperator+= (const Matrix &matrix)
 
Matrixoperator-= (const Matrix &matrix)
 
Matrixoperator*= (double factor)
 
Matrixoperator/= (double factor)
 

Protected Member Functions

std::vector< double > GatherSubmatrix (int proc, int i_row, int i_col=0, int n_rows=1, int n_cols=1)
 
void ScatterSubmatrix (std::vector< double > &submatrix, int proc, int i_row, int i_col=0, int n_rows=1)
 

Protected Attributes

std::vector< double > local_part_
 
int block_first_row_ = 0
 
int n_local_rows_ = 0
 
int n_local_cols_ = 0
 
int n_row_
 
int n_col_
 
int n_row_block_
 
int n_col_block_
 
Gridgrid_ = NULL
 
std::vector< int > desc_
 

Friends

Matrix LoadMatrix (fs::path folder, Grid *grid)
 

The documentation for this class was generated from the following files: