IGLib 1.4
The IGLib base library for development of numerical, technical and business applications.
|
Base class for various matrix DTO (Data Transfer Objects) for matrixs. Used to store a state of a matrix. More...
Public Member Functions | |
MatrixDtoBase () | |
Default constructor, sets IsNull to true. | |
MatrixDtoBase (int rowCnt, int columnCnt) | |
Constructor, prepares the current DTO for storing a matrix of the specified dimension. | |
abstract MatrixType | CreateMatrix (int rowCnt, int columnCnt) |
Creates and returns a new matrix of the specified dimension. | |
override MatrixType | CreateObject () |
Creates and returns a new matrix of the specified type and dimension. | |
Protected Member Functions | |
virtual void | AllocateComponents (int rowCnt, int columnCnt) |
Allocates the array that stores matrix elements. | |
override void | CopyFromPlain (IMatrix mat) |
Copies data to the current DTO from a matrix object. | |
override void | CopyToPlain (ref IMatrix mat) |
Copies data from the current DTO to a matrix object. | |
Protected Attributes | |
int | _rowCount |
int | _columnCount |
double[][] | _elements |
Properties | |
virtual int | RowCount [get, set] |
Number of rows of the matrix. | |
virtual int | ColumnCount [get, set] |
Number of columns of the matrix. | |
double[][] | Components [get, set] |
Matrix elements. |
Base class for various matrix DTO (Data Transfer Objects) for matrixs. Used to store a state of a matrix.
MatrixType | Type parameter specifying the specific matrix type for which concrete DTO is designed. |
$A Igor Jun09;
MatrixType | : | class | |
MatrixType | : | IMatrix |
IG::Lib::MatrixDtoBase< MatrixType >::MatrixDtoBase | ( | ) | [inline] |
Default constructor, sets IsNull to true.
IG::Lib::MatrixDtoBase< MatrixType >::MatrixDtoBase | ( | int | rowCnt, |
int | columnCnt | ||
) | [inline] |
Constructor, prepares the current DTO for storing a matrix of the specified dimension.
rowCnt | First dimension (number of rows) of a matrix that is stored in the current DTO. |
columnCnt | Second dimension (number of columns) of a matrix that is stored in the current DTO. |
virtual void IG::Lib::MatrixDtoBase< MatrixType >::AllocateComponents | ( | int | rowCnt, |
int | columnCnt | ||
) | [inline, protected, virtual] |
Allocates the array that stores matrix elements.
rowCnt | Number of rows of the matrix. |
columnCnt | Number of columns of the matrix. |
abstract MatrixType IG::Lib::MatrixDtoBase< MatrixType >::CreateMatrix | ( | int | rowCnt, |
int | columnCnt | ||
) | [pure virtual] |
Creates and returns a new matrix of the specified dimension.
rowCnt | Number of rows of the matrix. |
columnCnt | Number of columns of the matrix. |
override MatrixType IG::Lib::MatrixDtoBase< MatrixType >::CreateObject | ( | ) | [inline, virtual] |
Creates and returns a new matrix of the specified type and dimension.
Implements IG::Lib::SerializationDtoBase< Type, BaseType >.
override void IG::Lib::MatrixDtoBase< MatrixType >::CopyFromPlain | ( | IMatrix | mat | ) | [inline, protected] |
Copies data to the current DTO from a matrix object.
mat | Matrix object from which data is copied. |
override void IG::Lib::MatrixDtoBase< MatrixType >::CopyToPlain | ( | ref IMatrix | mat | ) | [inline, protected] |
Copies data from the current DTO to a matrix object.
mat | Matrix object that data is copied to. |
int IG::Lib::MatrixDtoBase< MatrixType >::_rowCount [protected] |
int IG::Lib::MatrixDtoBase< MatrixType >::_columnCount [protected] |
double [][] IG::Lib::MatrixDtoBase< MatrixType >::_elements [protected] |
virtual int IG::Lib::MatrixDtoBase< MatrixType >::RowCount [get, set] |
Number of rows of the matrix.
virtual int IG::Lib::MatrixDtoBase< MatrixType >::ColumnCount [get, set] |
Number of columns of the matrix.
double [][] IG::Lib::MatrixDtoBase< MatrixType >::Components [get, set] |
Matrix elements.