#include <Matrix.h>
Public Member Functions | |
CalculationMatrix () | |
CalculationMatrix (int x_size, int y_size=1, int z_size=1, int n_of_diags=1) | |
Constructor for CalculationMatrix class. | |
void | Initialize (int x_size, int y_size=1, int z_size=1, int n_of_diags=1) |
Allocating memory for CalculationMatrix. | |
int | index1d (int x, int y=0, int z=0) |
Function returns 1d index for 2D-3D arrays. | |
void | writeToFile (string filename) |
Save matrix to file. | |
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). |
Definition at line 218 of file Matrix.h.
CalculationMatrix::CalculationMatrix | ( | ) | [inline] |
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 1499 of file Matrix.cpp.
References Initialize(), and initialized.
int CalculationMatrix::index1d | ( | int | x, | |
int | y = 0 , |
|||
int | z = 0 | |||
) |
Function returns 1d index for 2D-3D arrays.
Definition at line 1564 of file Matrix.cpp.
References x_size, and y_size.
Referenced by Initialize(), MakeModelMatrix_3D(), and SecondDerivativeApproximation_3D().
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 1507 of file Matrix.cpp.
References index1d(), initialized, and total_size.
Referenced by CalculationMatrix().
void CalculationMatrix::writeToFile | ( | string | filename | ) |
Variables useful for changes tracking (store here time when changed).
Definition at line 224 of file Matrix.h.
Referenced by MakeModelMatrix_3D().