Public Member Functions | |
template<class MATRIX > | |
Entry (const MATRIX &matrix, unsigned row, unsigned int col, double prefix, bool transpose) | |
template<class MATRIX > | |
Entry (const MATRIX &matrix, unsigned row, unsigned int col, double prefix, bool transpose, VectorMemory< Vector< number > > &mem) | |
Entry (const Entry &) | |
~Entry () | |
Public Attributes | |
unsigned int | row |
unsigned int | col |
double | prefix |
bool | transpose |
PointerMatrixBase< Vector < number > > * | matrix |
For each entry of a BlockMatrixArray, its position, matrix, prefix and optional transposition must be stored. This structure encapsulates all of them.
BlockMatrixArray< number >::Entry::Entry | ( | const MATRIX & | matrix, | |
unsigned | row, | |||
unsigned int | col, | |||
double | prefix, | |||
bool | transpose | |||
) | [inline] |
Constructor initializing all data fields. A PointerMatrix object is generated for matrix
.
BlockMatrixArray< number >::Entry::Entry | ( | const MATRIX & | matrix, | |
unsigned | row, | |||
unsigned int | col, | |||
double | prefix, | |||
bool | transpose, | |||
VectorMemory< Vector< number > > & | mem | |||
) | [inline] |
Constructor initializing all data fields. A PointerMatrixAux object is generated for matrix
.
BlockMatrixArray< number >::Entry::Entry | ( | const Entry & | ) |
Copy constructor invalidating the old object. Since it is only used for entering temporary objects into a vector, this is ok.
For a deep copy, we would need a reproduction operator in PointerMatixBase.
BlockMatrixArray< number >::Entry::~Entry | ( | ) |
Destructor, where we delete the PointerMatrix created by the constructor.
unsigned int BlockMatrixArray< number >::Entry::row |
Row number in the block matrix.
unsigned int BlockMatrixArray< number >::Entry::col |
Column number in the block matrix.
double BlockMatrixArray< number >::Entry::prefix |
Factor in front of the matrix block.
bool BlockMatrixArray< number >::Entry::transpose |
Indicates that matrix block must be transposed for multiplication.
PointerMatrixBase<Vector<number> >* BlockMatrixArray< number >::Entry::matrix |
The matrix block itself.