#include <Matrix_Base.hxx>
Inheritance diagram for Seldon::Matrix_Base< T, Allocator >:

Public Types | |
| typedef Allocator::value_type | value_type |
| typedef Allocator::pointer | pointer |
| typedef Allocator::const_pointer | const_pointer |
| typedef Allocator::reference | reference |
| typedef Allocator::const_reference | const_reference |
Public Member Functions | |
| Matrix_Base () | |
| Default constructor. | |
| Matrix_Base (int i) | |
| Matrix_Base (int i, int j) | |
| Main constructor. | |
| ~Matrix_Base () | |
| Destructor. | |
| int | GetM () const |
| Returns the number of rows. | |
| int | GetN () const |
| Returns the number of columns. | |
| int | GetSize () const |
| Returns the number of elements in the matrix. | |
| pointer | GetData () const |
| Returns a pointer to the data array. | |
| const_pointer | GetDataConst () const |
| Returns a const pointer to the data array. | |
| void * | GetDataVoid () const |
| Returns a pointer of type "void*" to the data array. | |
| const void * | GetDataConstVoid () const |
| Returns a pointer of type "const void*" to the data array. | |
Protected Attributes | |
| int | m_ |
| int | n_ |
| pointer | data_ |
Static Protected Attributes | |
| static Allocator | allocator_ |
It stores some data and matrix dimensions. It defines basic methods as well.
|
|||||||||
|
Default constructor. On exit, the matrix is an empty 0x0 matrix. |
|
||||||||||||||||
|
Main constructor. Builds a i x j matrix, but data array is not initialized.
|
|
|||||||||
|
Destructor.
|
|
|||||||||
|
Returns a pointer to the data array. Returns a pointer to data, i.e. the data array 'data_'.
|
|
|||||||||
|
Returns a const pointer to the data array. Returns a const pointer to data, i.e. the data array 'data_'.
|
|
|||||||||
|
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_'.
|
|
|||||||||
|
Returns a pointer of type "void*" to the data array. Returns a pointer of type "void*" to data, i.e. the data array 'data_'.
|
|
|||||||||
|
Returns the number of rows.
|
|
|||||||||
|
Returns the number of columns.
|
|
|||||||||
|
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.
|
1.4.0