VERB_code_2.3
|
This matrix calculates the diagonal values and index given parameters for x, y, and z. More...
#include <Matrix.h>
Public Member Functions | |
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 |
Flag, equal true if initialized. | |
string | change_ind |
Variables useful for changes tracking (store here time when changed) | |
int | x_size |
int | y_size |
int | total_size |
This matrix calculates the diagonal values and index given parameters for x, y, and z.
Model matrix (or related matrices) It is based on DiagMatrix 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 1928 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 1993 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 1936 of file Matrix.cpp.
void CalculationMatrix::writeToFile | ( | string | filename | ) |
Save matrix to file.
Definition at line 2000 of file Matrix.cpp.
int CalculationMatrix::total_size |
int CalculationMatrix::x_size |
int CalculationMatrix::y_size |