Sub-matrix base class. More...
#include <SubMatrix_Base.hxx>
Public Member Functions | |
SubMatrix_Base (M &A, Vector< int > &row_list, Vector< int > &column_list) | |
Main constructor. | |
~SubMatrix_Base () | |
Destructor. | |
access_type | operator() (int i, int j) |
Access operator. More... | |
const_access_type | operator() (int i, int j) const |
Access operator. More... | |
entry_type & | Val (int i, int j) |
Access operator. More... | |
const entry_type & | Val (int i, int j) const |
Access operator. More... | |
int | GetM () const |
Returns the number of rows. More... | |
int | GetN () const |
Returns the number of columns. More... | |
int | GetM (const SeldonTranspose &status) const |
Returns the number of rows of the sub-matrix possibly transposed. More... | |
int | GetN (const SeldonTranspose &status) const |
Returns the number of columns of the sub-matrix possibly transposed. More... | |
void | Print () const |
Prints a matrix on screen. More... | |
pointer | GetData () const |
Returns a pointer to the data array. More... | |
const_pointer | GetDataConst () const |
Returns a const pointer to the data array. More... | |
void * | GetDataVoid () const |
Returns a pointer of type "void*" to the data array. More... | |
const void * | GetDataConstVoid () const |
Returns a pointer of type "const void*" to the data array. 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 | |
M * | matrix_ |
Pointer to the base matrix. | |
Vector< int > | row_list_ |
List of rows. | |
Vector< int > | column_list_ |
List of columns. | |
pointer | data_ |
int | m_ |
int | n_ |
Sub-matrix base class.
Definition at line 29 of file SubMatrix_Base.hxx.
|
inlineinherited |
Returns a pointer to the data array.
Returns a pointer to data, i.e. the data array 'data_'.
Definition at line 241 of file Matrix_BaseInline.cxx.
|
inlineinherited |
Returns a const pointer to the data array.
Returns a const pointer to data, i.e. the data array 'data_'.
Definition at line 254 of file Matrix_BaseInline.cxx.
|
inlineinherited |
Returns a pointer of type "const void*" to the data array.
Returns a pointer of type "const void*" to data, i.e. the data array 'data_'.
Definition at line 280 of file Matrix_BaseInline.cxx.
|
inlineinherited |
Returns a pointer of type "void*" to the data array.
Returns a pointer of type "void*" to data, i.e. the data array 'data_'.
Definition at line 267 of file Matrix_BaseInline.cxx.
|
inline |
Returns the number of rows.
Definition at line 137 of file SubMatrix_BaseInline.cxx.
|
inlineinherited |
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 sub-matrix possibly transposed.
status | assumed status about the transposition of the sub-matrix. |
Definition at line 161 of file SubMatrix_BaseInline.cxx.
|
inline |
Returns the number of columns.
Definition at line 148 of file SubMatrix_BaseInline.cxx.
|
inlineinherited |
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 sub-matrix possibly transposed.
status | assumed status about the transposition of the sub-matrix. |
Definition at line 177 of file SubMatrix_BaseInline.cxx.
|
inlineinherited |
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.
|
inline |
Access operator.
Returns the value of element (i, j).
[in] | i | row index. |
[in] | j | column index. |
Definition at line 76 of file SubMatrix_BaseInline.cxx.
|
inline |
Access operator.
Returns the value of element (i, j).
[in] | i | row index. |
[in] | j | column index. |
Definition at line 91 of file SubMatrix_BaseInline.cxx.
|
inline |
Prints a matrix on screen.
Displays all elements on the standard output, in text format. Each row is displayed on a single line, and the elements of a row are delimited by tabulations.
Definition at line 192 of file SubMatrix_BaseInline.cxx.
|
inline |
Access operator.
Returns the value of element (i, j).
[in] | i | row index. |
[in] | j | column index. |
Definition at line 106 of file SubMatrix_BaseInline.cxx.
|
inline |
Access operator.
Returns the value of element (i, j).
[in] | i | row index. |
[in] | j | column index. |
Definition at line 121 of file SubMatrix_BaseInline.cxx.