Nektar++
|
#include <MatrixBase.hpp>
Public Member Functions | |
virtual | ~ConstMatrix () |
boost::call_traits< DataType >::value_type | operator() (unsigned int row, unsigned int column) const |
unsigned int | GetStorageSize () const |
MatrixStorage | GetType () const |
MatrixStorage | GetStorageType () const |
unsigned int | GetRows () const |
unsigned int | GetTransposedRows (char transpose) const |
unsigned int | GetColumns () const |
unsigned int | GetTransposedColumns (char transpose) const |
const unsigned int * | GetSize () const |
void | Transpose () |
char | GetTransposeFlag () const |
Static Public Member Functions | |
static unsigned int | CalculateIndex (MatrixStorage type, unsigned int row, unsigned int col, unsigned int numRows, unsigned int numColumns, const char transpose='N', unsigned int numSubDiags=0, unsigned int numSuperDiags=0) |
static unsigned int | GetRequiredStorageSize (MatrixStorage type, unsigned int rows, unsigned int columns, unsigned int subDiags=0, unsigned int superDiags=0) |
Protected Member Functions | |
ConstMatrix (unsigned int rows, unsigned int columns, MatrixStorage policy=eFULL) | |
ConstMatrix (const ConstMatrix< DataType > &rhs) | |
ConstMatrix< DataType > & | operator= (const ConstMatrix< DataType > &rhs) |
void | Resize (unsigned int rows, unsigned int columns) |
Resets the rows and columns in the array. This method does not update the data storage to match the new row and column counts. More... | |
void | SetTransposeFlag (char newValue) |
char | GetRawTransposeFlag () const |
Private Member Functions | |
virtual boost::call_traits< DataType >::value_type | v_GetValue (unsigned int row, unsigned int column) const =0 |
virtual unsigned int | v_GetStorageSize () const =0 |
virtual void | v_Transpose () |
virtual char | v_GetTransposeFlag () const |
Private Attributes | |
unsigned int | m_size [2] |
char | m_transpose |
MatrixStorage | m_storageType |
Definition at line 54 of file MatrixBase.hpp.
|
virtual |
Definition at line 37 of file MatrixBase.cpp.
|
protected |
Definition at line 225 of file MatrixBase.cpp.
Referenced by Nektar::ConstMatrix< NekMatrix< DataType, InnerMatrixType >::NumberType >::GetStorageType().
|
protected |
Definition at line 236 of file MatrixBase.cpp.
|
static |
Definition at line 119 of file MatrixBase.cpp.
Referenced by Nektar::NekMatrix< DataType, StandardMatrixTag >::CalculateIndex(), and Nektar::ConstMatrix< NekMatrix< DataType, InnerMatrixType >::NumberType >::GetStorageType().
unsigned int Nektar::ConstMatrix< DataType >::GetColumns | ( | ) | const |
Definition at line 77 of file MatrixBase.cpp.
Referenced by Nektar::AddEqual(), Nektar::AddEqualNegatedLhs(), Nektar::ConstMatrix< NekMatrix< DataType, InnerMatrixType >::NumberType >::GetStorageType(), Nektar::MultiplyEqual(), Nektar::NegateInPlace(), Nektar::NekMatrix< DataType, StandardMatrixTag >::operator==(), Nektar::SubtractEqual(), Nektar::SubtractEqualNegatedLhs(), and Nektar::Transpose().
|
inlineprotected |
Definition at line 112 of file MatrixBase.hpp.
|
static |
Definition at line 175 of file MatrixBase.cpp.
Referenced by Nektar::NekMatrix< DataType, StandardMatrixTag >::GetRequiredStorageSize(), and Nektar::ConstMatrix< NekMatrix< DataType, InnerMatrixType >::NumberType >::GetStorageType().
unsigned int Nektar::ConstMatrix< DataType >::GetRows | ( | ) | const |
Definition at line 58 of file MatrixBase.cpp.
Referenced by Nektar::AddEqual(), Nektar::AddEqualNegatedLhs(), Nektar::ConstMatrix< NekMatrix< DataType, InnerMatrixType >::NumberType >::GetStorageType(), Nektar::MultiplyEqual(), Nektar::NegateInPlace(), Nektar::NekMatrix< DataType, StandardMatrixTag >::operator==(), Nektar::SubtractEqual(), Nektar::SubtractEqualNegatedLhs(), and Nektar::Transpose().
const unsigned int * Nektar::ConstMatrix< DataType >::GetSize | ( | ) | const |
Definition at line 96 of file MatrixBase.cpp.
Referenced by Nektar::ConstMatrix< NekMatrix< DataType, InnerMatrixType >::NumberType >::GetStorageType().
unsigned int Nektar::ConstMatrix< DataType >::GetStorageSize | ( | ) | const |
Definition at line 52 of file MatrixBase.cpp.
|
inline |
Definition at line 69 of file MatrixBase.hpp.
unsigned int Nektar::ConstMatrix< DataType >::GetTransposedColumns | ( | char | transpose | ) | const |
Definition at line 83 of file MatrixBase.cpp.
Referenced by Nektar::ConstMatrix< NekMatrix< DataType, InnerMatrixType >::NumberType >::GetStorageType().
unsigned int Nektar::ConstMatrix< DataType >::GetTransposedRows | ( | char | transpose | ) | const |
Definition at line 64 of file MatrixBase.cpp.
Referenced by Nektar::ConstMatrix< NekMatrix< DataType, InnerMatrixType >::NumberType >::GetStorageType().
char Nektar::ConstMatrix< DataType >::GetTransposeFlag | ( | ) | const |
Definition at line 113 of file MatrixBase.cpp.
Referenced by Nektar::ConstMatrix< NekMatrix< DataType, InnerMatrixType >::NumberType >::GetStorageType(), and Nektar::NekMatrix< DataType, StandardMatrixTag >::operator==().
|
inline |
boost::call_traits< DataType >::value_type Nektar::ConstMatrix< DataType >::operator() | ( | unsigned int | row, |
unsigned int | column | ||
) | const |
Definition at line 40 of file MatrixBase.cpp.
|
protected |
Definition at line 246 of file MatrixBase.cpp.
Referenced by Nektar::ConstMatrix< NekMatrix< DataType, InnerMatrixType >::NumberType >::GetStorageType(), and Nektar::Matrix< DataType >::operator=().
|
protected |
Resets the rows and columns in the array. This method does not update the data storage to match the new row and column counts.
Definition at line 257 of file MatrixBase.cpp.
Referenced by Nektar::ConstMatrix< NekMatrix< DataType, InnerMatrixType >::NumberType >::GetStorageType().
|
protected |
Definition at line 264 of file MatrixBase.cpp.
Referenced by Nektar::ConstMatrix< NekMatrix< DataType, InnerMatrixType >::NumberType >::GetStorageType().
void Nektar::ConstMatrix< DataType >::Transpose | ( | ) |
Definition at line 99 of file MatrixBase.cpp.
Referenced by Nektar::ConstMatrix< NekMatrix< DataType, InnerMatrixType >::NumberType >::GetStorageType(), and Nektar::Transpose().
|
privatepure virtual |
Implemented in Nektar::NekMatrix< DataType, StandardMatrixTag >, Nektar::NekMatrix< NekMatrix< DataType, InnerMatrixType >, BlockMatrixTag >, and Nektar::NekMatrix< NekMatrix< DataType, InnerMatrixType >, ScaledMatrixTag >.
Referenced by Nektar::ConstMatrix< NekMatrix< DataType, InnerMatrixType >::NumberType >::GetRawTransposeFlag().
|
privatevirtual |
Reimplemented in Nektar::NekMatrix< NekMatrix< DataType, InnerMatrixType >, ScaledMatrixTag >.
Definition at line 273 of file MatrixBase.cpp.
Referenced by Nektar::ConstMatrix< NekMatrix< DataType, InnerMatrixType >::NumberType >::GetRawTransposeFlag().
|
privatepure virtual |
Implemented in Nektar::NekMatrix< DataType, StandardMatrixTag >, Nektar::NekMatrix< NekMatrix< DataType, InnerMatrixType >, BlockMatrixTag >, and Nektar::NekMatrix< NekMatrix< DataType, InnerMatrixType >, ScaledMatrixTag >.
Referenced by Nektar::ConstMatrix< NekMatrix< DataType, InnerMatrixType >::NumberType >::GetRawTransposeFlag().
|
privatevirtual |
Reimplemented in Nektar::NekMatrix< NekMatrix< DataType, InnerMatrixType >, BlockMatrixTag >.
Definition at line 270 of file MatrixBase.cpp.
Referenced by Nektar::ConstMatrix< NekMatrix< DataType, InnerMatrixType >::NumberType >::GetRawTransposeFlag().
|
private |
Definition at line 123 of file MatrixBase.hpp.
Referenced by Nektar::ConstMatrix< NekMatrix< DataType, InnerMatrixType >::NumberType >::ConstMatrix(), and Nektar::ConstMatrix< NekMatrix< DataType, InnerMatrixType >::NumberType >::operator=().
|
private |
Definition at line 125 of file MatrixBase.hpp.
Referenced by Nektar::ConstMatrix< NekMatrix< DataType, InnerMatrixType >::NumberType >::GetStorageType(), Nektar::ConstMatrix< NekMatrix< DataType, InnerMatrixType >::NumberType >::GetType(), and Nektar::ConstMatrix< NekMatrix< DataType, InnerMatrixType >::NumberType >::operator=().
|
private |
Definition at line 124 of file MatrixBase.hpp.
Referenced by Nektar::ConstMatrix< NekMatrix< DataType, InnerMatrixType >::NumberType >::GetRawTransposeFlag(), and Nektar::ConstMatrix< NekMatrix< DataType, InnerMatrixType >::NumberType >::operator=().