Heterogeneous matrix collection class. More...
#include <HeterogeneousMatrixCollection.hxx>
Public Types | |
typedef General | property |
typedef DenseSparseCollection | storage |
typedef Allocator< double > | allocator |
typedef Matrix< float, General, RowMajor, Allocator< float > > | float_dense_m |
typedef Matrix< float, General, RowSparse, Allocator< float > > | float_sparse_m |
typedef Matrix< double, General, RowMajor, Allocator < double > > | double_dense_m |
typedef Matrix< double, General, RowSparse, Allocator < double > > | double_sparse_m |
typedef Matrix< float_dense_m, General, RowMajorCollection, NewAlloc< float_dense_m > > | float_dense_c |
typedef Matrix< float_sparse_m, General, RowMajorCollection, NewAlloc< float_sparse_m > > | float_sparse_c |
typedef Matrix< double_dense_m, General, RowMajorCollection, NewAlloc< double_dense_m > > | double_dense_c |
typedef Matrix < double_sparse_m, General, RowMajorCollection, NewAlloc < double_sparse_m > > | double_sparse_c |
typedef Allocator< double > ::value_type | value_type |
typedef Allocator< double > ::pointer | pointer |
typedef Allocator< double > ::const_pointer | const_pointer |
typedef Allocator< double > ::reference | reference |
typedef Allocator< double > ::const_reference | const_reference |
Public Member Functions | |
Matrix () | |
Default constructor. | |
Matrix (int i, int j) | |
Main constructor. | |
void | Clear () |
void | Nullify () |
void | Nullify (int i, int j) |
void | Deallocate () |
int | GetM () const |
int | GetM (int i) const |
int | GetM (const Seldon::SeldonTranspose &status) const |
int | GetMmatrix () const |
int | GetN () const |
int | GetN (int j) const |
int | GetN (const Seldon::SeldonTranspose &status) const |
int | GetNmatrix () const |
int | GetSize () const |
int | GetDataSize () const |
int | GetType (int i, int j) const |
float_dense_c & | GetFloatDense () |
const float_dense_c & | GetFloatDense () const |
float_sparse_c & | GetFloatSparse () |
const float_sparse_c & | GetFloatSparse () const |
double_dense_c & | GetDoubleDense () |
const double_dense_c & | GetDoubleDense () const |
double_sparse_c & | GetDoubleSparse () |
const double_sparse_c & | GetDoubleSparse () const |
void | Reallocate (int i, int j) |
void | SetMatrix (int m, int n, const float_dense_m &) |
void | SetMatrix (int m, int n, const float_sparse_m &) |
void | SetMatrix (int m, int n, const double_dense_m &) |
void | SetMatrix (int m, int n, const double_sparse_m &) |
void | GetMatrix (int m, int n, float_dense_m &) const |
void | GetMatrix (int m, int n, float_sparse_m &) const |
void | GetMatrix (int m, int n, double_dense_m &) const |
void | GetMatrix (int m, int n, double_sparse_m &) const |
double | operator() (int i, int j) const |
void | Copy (const HeterogeneousMatrixCollection< General, RowMajor, General, RowSparse, Allocator > &A) |
void | Print () const |
void | Write (string FileName, bool with_size) const |
void | Write (ostream &FileStream, bool with_size) const |
void | WriteText (string FileName) const |
void | WriteText (ostream &FileStream) const |
void | Read (string FileName) |
void | Read (istream &FileStream) |
pointer | GetData () const |
const_pointer | GetDataConst () const |
void * | GetDataVoid () const |
const void * | GetDataConstVoid () const |
Allocator< double > & | GetAllocator () |
Protected Attributes | |
int | nz_ |
Number of non-zero elements. | |
int | Mmatrix_ |
Number of rows of matrices. | |
int | Nmatrix_ |
Number of columns of matrices. | |
Vector< int, VectFull, CallocAlloc< int > > | Mlocal_ |
Number of rows in the underlying matrices. | |
Vector< int, VectFull, CallocAlloc< int > > | Mlocal_sum_ |
Cumulative number of rows in the underlying matrices. | |
Vector< int, VectFull, CallocAlloc< int > > | Nlocal_ |
Number of columns in the underlying matrices. | |
Vector< int, VectFull, CallocAlloc< int > > | Nlocal_sum_ |
Cumulative number of columns in the underlying matrices. | |
Matrix< int, General, RowMajor, CallocAlloc< int > > | collection_ |
Type of the underlying matrices. | |
float_dense_c | float_dense_c_ |
Pointers of the underlying float dense matrices. | |
float_sparse_c | float_sparse_c_ |
Pointers of the underlying float sparse matrices. | |
double_dense_c | double_dense_c_ |
Pointers of the underlying double dense matrices. | |
double_sparse_c | double_sparse_c_ |
Pointers of the underlying double sparse matrices. | |
int | m_ |
int | n_ |
pointer | data_ |
Static Protected Attributes | |
static Allocator< double > | allocator_ |
Heterogeneous matrix collection class.
Definition at line 179 of file HeterogeneousMatrixCollection.hxx.
Seldon::Matrix< FloatDouble, General, DenseSparseCollection, Allocator< double > >::Matrix | ( | ) | [inline] |
Default constructor.
On exit, the matrix is an empty 0x0 matrix.
Definition at line 1624 of file HeterogeneousMatrixCollection.cxx.
Seldon::Matrix< FloatDouble, General, DenseSparseCollection, Allocator< double > >::Matrix | ( | int | i, | |
int | j | |||
) | [inline] |
Main constructor.
Builds a i x j collection matrix.
[in] | i | number of rows of matrices. |
[in] | j | number of columns of matrices. |
Definition at line 1639 of file HeterogeneousMatrixCollection.cxx.
Matrix<int, General, RowMajor, CallocAlloc<int> > Seldon::HeterogeneousMatrixCollection< General , RowMajor , General , RowSparse , Allocator >::collection_ [protected, inherited] |
Type of the underlying matrices.
Type 0 refers to float dense matrices. Type 1 refers to float sparse matrices. Type 2 refers to double dense matrices. Type 3 refers to double sparse matrices.
Definition at line 88 of file HeterogeneousMatrixCollection.hxx.