VERB_code_2.2
2
|
#include <Matrix.h>
Public Member Functions | |
CalculationMatrix () | |
CalculationMatrix (int x_size, int y_size=1, int z_size=1, int n_of_diags=1) | |
void | Initialize (int x_size, int y_size=1, int z_size=1, int n_of_diags=1) |
int | index1d (int x, int y=0, int z=0) |
void | writeToFile (string filename) |
Matrix1D< double > | operator* (Matrix1D< double > &V) const |
Public Attributes | |
bool | initialized |
int | x_size |
int | y_size |
int | total_size |
string | change_ind |
Variables useful for changes tracking (store here time when changed) More... | |
Model matrix (or related matrices) It is based on Diagonal matrix and have methods for conversion from 3D or 2D PSD (and related) arrays into 1d array of unknown elements
CalculationMatrix::CalculationMatrix | ( | int | x_size, |
int | y_size = 1 , |
||
int | z_size = 1 , |
||
int | n_of_diags = 1 |
||
) |
Constructor for CalculationMatrix class.
x_size | - x size |
y_size | - y size |
z_size | - z size |
n_of_diags | - NUMBER OF DIAGONALS ABOVE THE MAIN DIAGONAL (main diagonal is not counted) |
Definition at line 1931 of file Matrix.cpp.
void CalculationMatrix::Initialize | ( | int | x_size, |
int | y_size = 1 , |
||
int | z_size = 1 , |
||
int | n_of_diags = 1 |
||
) |
Allocating memory for CalculationMatrix
Definition at line 1939 of file Matrix.cpp.
int CalculationMatrix::index1d | ( | int | x, |
int | y = 0 , |
||
int | z = 0 |
||
) |
Function returns 1d index for 2D-3D arrays
Definition at line 1996 of file Matrix.cpp.
void CalculationMatrix::writeToFile | ( | string | filename) |
Save matrix to file.
Definition at line 2003 of file Matrix.cpp.
string CalculationMatrix::change_ind |