CalculationMatrix Class Reference

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. More...

#include <Matrix.h>

List of all members.

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).


Detailed Description

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.

Definition at line 218 of file Matrix.h.


Constructor & Destructor Documentation

CalculationMatrix::CalculationMatrix (  )  [inline]

Definition at line 227 of file Matrix.h.

References initialized.

CalculationMatrix::CalculationMatrix ( int  x_size,
int  y_size = 1,
int  z_size = 1,
int  n_of_diags = 1 
)

Constructor for CalculationMatrix class.

Parameters:
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.

Here is the call graph for this function:


Member Function Documentation

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().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void CalculationMatrix::writeToFile ( string  filename  ) 

Save matrix to file.

Definition at line 1571 of file Matrix.cpp.

References total_size.


Member Data Documentation

Variables useful for changes tracking (store here time when changed).

Definition at line 224 of file Matrix.h.

Referenced by MakeModelMatrix_3D().

Definition at line 221 of file Matrix.h.

Referenced by CalculationMatrix(), and Initialize().

Definition at line 222 of file Matrix.h.

Referenced by Initialize(), and writeToFile().

Definition at line 222 of file Matrix.h.

Referenced by index1d().

Definition at line 222 of file Matrix.h.

Referenced by index1d().


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

Generated on Thu May 27 11:53:19 2010 for VERB_CODE_2.0 by  doxygen 1.5.9