Abstract base class for all matrices. More...
#include <Matrix_Base.hxx>
Public Member Functions | |
VirtualMatrix () | |
Default constructor. More... | |
VirtualMatrix (int i, int j) | |
Main constructor. More... | |
int | GetM () const |
Returns the number of rows. More... | |
int | GetN () const |
Returns the number of columns. More... | |
int | GetM (const Seldon::SeldonTranspose &status) const |
Returns the number of rows of the matrix possibly transposed. More... | |
int | GetN (const Seldon::SeldonTranspose &status) const |
Returns the number of columns of the matrix possibly transposed. More... | |
int | GetM (const CBLAS_TRANSPOSE &status) const |
Returns the number of rows of the matrix possibly transposed. More... | |
int | GetN (const CBLAS_TRANSPOSE &status) const |
Returns the number of columns of the matrix possibly transposed. More... | |
long | GetSize () const |
Returns the number of elements in the matrix. More... | |
Protected Attributes | |
int | m_ |
int | n_ |
Abstract base class for all matrices.
This class is abstract if SELDON_WITH_VIRTUAL is defined. In that case, it can be used for iterative solvers or eigenvalue solvers such that a general algorithm can be written and compiled with this abstract definition of a matrix.
Definition at line 42 of file Matrix_Base.hxx.
|
inline |
Default constructor.
On exit, the matrix is an empty 0x0 matrix.
Definition at line 37 of file Matrix_BaseInline.cxx.
|
inlineexplicit |
Main constructor.
Builds a i x j matrix
i | number of rows. |
j | number of columns. |
Definition at line 50 of file Matrix_BaseInline.cxx.
|
inline |
Returns the number of rows.
Definition at line 69 of file Matrix_BaseInline.cxx.
|
inline |
Returns the number of rows of the matrix possibly transposed.
status | assumed status about the transposition of the matrix. |
Definition at line 122 of file Matrix_BaseInline.cxx.
|
inline |
Returns the number of rows of the matrix possibly transposed.
status | assumed status about the transposition of the matrix. |
Definition at line 92 of file Matrix_BaseInline.cxx.
|
inline |
Returns the number of columns.
Definition at line 80 of file Matrix_BaseInline.cxx.
|
inline |
Returns the number of columns of the matrix possibly transposed.
status | assumed status about the transposition of the matrix. |
Definition at line 137 of file Matrix_BaseInline.cxx.
|
inline |
Returns the number of columns of the matrix possibly transposed.
status | assumed status about the transposition of the matrix. |
Definition at line 107 of file Matrix_BaseInline.cxx.
|
inline |
Returns the number of elements in the matrix.
Returns the number of elements in the matrix, i.e. the number of rows multiplied by the number of columns.
Definition at line 153 of file Matrix_BaseInline.cxx.