VERB_code_2.3
CalculationMatrix Class Reference

This matrix calculates the diagonal values and index given parameters for x, y, and z. More...

#include <Matrix.h>

Inheritance diagram for CalculationMatrix:
DiagMatrix

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
 

Detailed Description

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

Definition at line 327 of file Matrix.h.

Constructor & Destructor Documentation

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 1928 of file Matrix.cpp.

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

Member Data Documentation

int CalculationMatrix::total_size

length of x, length of y, total size

Definition at line 333 of file Matrix.h.

int CalculationMatrix::x_size

length of x, length of y, total size

Definition at line 333 of file Matrix.h.

int CalculationMatrix::y_size

length of x, length of y, total size

Definition at line 333 of file Matrix.h.


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