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 | 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) | |
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. | |
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 MatrixStorage | v_GetStorageType () const =0 |
virtual void | v_Transpose () |
virtual char | v_GetTransposeFlag () const |
Private Attributes | |
unsigned int | m_size [2] |
char | m_transpose |
Definition at line 57 of file MatrixBase.hpp.
|
virtual |
Definition at line 38 of file MatrixBase.cpp.
|
protected |
Definition at line 232 of file MatrixBase.cpp.
References Nektar::ConstMatrix< DataType >::m_size.
|
protected |
Definition at line 241 of file MatrixBase.cpp.
References Nektar::ConstMatrix< DataType >::m_size.
|
static |
Definition at line 126 of file MatrixBase.cpp.
References ASSERTL1, Nektar::BandedMatrixFuncs::CalculateIndex(), Nektar::FullMatrixFuncs::CalculateIndex(), Nektar::UpperTriangularMatrixFuncs::CalculateIndex(), Nektar::LowerTriangularMatrixFuncs::CalculateIndex(), Nektar::SymmetricMatrixFuncs::CalculateIndex(), Nektar::DiagonalMatrixFuncs::CalculateIndex(), Nektar::SymmetricBandedMatrixFuncs::CalculateIndex(), Nektar::eBANDED, Nektar::eDIAGONAL, ErrorUtil::efatal, Nektar::eFULL, Nektar::eLOWER_TRIANGULAR, Nektar::eLOWER_TRIANGULAR_BANDED, Nektar::ePOSITIVE_DEFINITE_SYMMETRIC, Nektar::ePOSITIVE_DEFINITE_SYMMETRIC_BANDED, Nektar::eSYMMETRIC, Nektar::eSYMMETRIC_BANDED, Nektar::eUPPER_TRIANGULAR, Nektar::eUPPER_TRIANGULAR_BANDED, and NEKERROR.
unsigned int Nektar::ConstMatrix< DataType >::GetColumns | ( | ) | const |
Definition at line 84 of file MatrixBase.cpp.
Referenced by Nektar::AddEqualNegatedLhs(), Nektar::MultiplyEqual(), Nektar::NegateInPlace(), Nektar::NekMatrix< DataType, StandardMatrixTag >::operator==(), Nektar::SubtractEqualNegatedLhs(), and Nektar::Transpose().
|
protected |
Definition at line 273 of file MatrixBase.cpp.
|
static |
Definition at line 182 of file MatrixBase.cpp.
References ASSERTL1, Nektar::eBANDED, Nektar::eDIAGONAL, ErrorUtil::efatal, Nektar::eFULL, Nektar::eLOWER_TRIANGULAR, Nektar::eLOWER_TRIANGULAR_BANDED, Nektar::ePOSITIVE_DEFINITE_SYMMETRIC, Nektar::ePOSITIVE_DEFINITE_SYMMETRIC_BANDED, Nektar::eSYMMETRIC, Nektar::eSYMMETRIC_BANDED, Nektar::eUPPER_TRIANGULAR, Nektar::eUPPER_TRIANGULAR_BANDED, Nektar::BandedMatrixFuncs::GetRequiredStorageSize(), Nektar::FullMatrixFuncs::GetRequiredStorageSize(), Nektar::TriangularMatrixFuncs::GetRequiredStorageSize(), Nektar::DiagonalMatrixFuncs::GetRequiredStorageSize(), Nektar::TriangularBandedMatrixFuncs::GetRequiredStorageSize(), and NEKERROR.
unsigned int Nektar::ConstMatrix< DataType >::GetRows | ( | ) | const |
Definition at line 65 of file MatrixBase.cpp.
Referenced by Nektar::AddEqualNegatedLhs(), Nektar::MultiplyEqual(), Nektar::NegateInPlace(), Nektar::NekMatrix< DataType, StandardMatrixTag >::operator==(), Nektar::SubtractEqualNegatedLhs(), and Nektar::Transpose().
const unsigned int * Nektar::ConstMatrix< DataType >::GetSize | ( | ) | const |
Definition at line 103 of file MatrixBase.cpp.
unsigned int Nektar::ConstMatrix< DataType >::GetStorageSize | ( | ) | const |
Reimplemented in Nektar::NekMatrix< DataType, StandardMatrixTag >, Nektar::NekMatrix< NekMatrix< DataType, InnerMatrixType >, BlockMatrixTag >, and Nektar::NekMatrix< NekMatrix< DataType, InnerMatrixType >, ScaledMatrixTag >.
Definition at line 53 of file MatrixBase.cpp.
MatrixStorage Nektar::ConstMatrix< DataType >::GetStorageType | ( | ) | const |
Definition at line 59 of file MatrixBase.cpp.
unsigned int Nektar::ConstMatrix< DataType >::GetTransposedColumns | ( | char | transpose | ) | const |
Definition at line 90 of file MatrixBase.cpp.
unsigned int Nektar::ConstMatrix< DataType >::GetTransposedRows | ( | char | transpose | ) | const |
Definition at line 71 of file MatrixBase.cpp.
char Nektar::ConstMatrix< DataType >::GetTransposeFlag | ( | ) | const |
Reimplemented in Nektar::NekMatrix< DataType, StandardMatrixTag >.
Definition at line 120 of file MatrixBase.cpp.
boost::call_traits< DataType >::value_type Nektar::ConstMatrix< DataType >::operator() | ( | unsigned int | row, |
unsigned int | column | ||
) | const |
Reimplemented in Nektar::NekMatrix< DataType, StandardMatrixTag >, Nektar::NekMatrix< NekMatrix< DataType, InnerMatrixType >, BlockMatrixTag >, and Nektar::NekMatrix< NekMatrix< DataType, InnerMatrixType >, ScaledMatrixTag >.
Definition at line 41 of file MatrixBase.cpp.
References ASSERTL2.
|
protected |
Reimplemented in Nektar::Matrix< DataType >.
Definition at line 250 of file MatrixBase.cpp.
References Nektar::ConstMatrix< DataType >::m_size, and Nektar::ConstMatrix< DataType >::m_transpose.
Referenced by 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 260 of file MatrixBase.cpp.
|
protected |
Definition at line 267 of file MatrixBase.cpp.
void Nektar::ConstMatrix< DataType >::Transpose | ( | ) |
Definition at line 106 of file MatrixBase.cpp.
Referenced by Nektar::Transpose().
|
privatepure virtual |
|
privatepure virtual |
|
privatevirtual |
Definition at line 279 of file MatrixBase.cpp.
|
privatepure virtual |
|
privatevirtual |
Definition at line 276 of file MatrixBase.cpp.
|
private |
Definition at line 115 of file MatrixBase.hpp.
Referenced by Nektar::ConstMatrix< DataType >::ConstMatrix(), and Nektar::ConstMatrix< DataType >::operator=().
|
private |
Definition at line 116 of file MatrixBase.hpp.
Referenced by Nektar::ConstMatrix< DataType >::operator=().