template<typename DataType>
singleton Nektar::ConstMatrix< DataType >
Definition at line 57 of file MatrixBase.hpp.
template<typename DataType >
unsigned int Nektar::ConstMatrix< DataType >::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 |
Definition at line 120 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.
Referenced by Nektar::NekMatrix< DataType, StandardMatrixTag >::CalculateIndex().
125 if(transpose ==
'T' )
149 row, col, numSubDiags, numSuperDiags);
154 ASSERTL1(numSubDiags==numSuperDiags,
155 std::string(
"Number of sub- and superdiagonals should ") +
156 std::string(
"be equal for a symmetric banded matrix"));
172 return std::numeric_limits<unsigned int>::max();
#define NEKERROR(type, msg)
Assert Level 0 – Fundamental assert which is used whether in FULLDEBUG, DEBUG or OPT compilation mod...
static unsigned int CalculateIndex(unsigned int totalRows, unsigned int totalColumns, unsigned int row, unsigned int column, unsigned int sub, unsigned int super)
static unsigned int CalculateIndex(unsigned int curRow, unsigned int curColumn, unsigned int nSuperDiags)
static unsigned int CalculateIndex(unsigned int curRow, unsigned int curColumn)
static unsigned int CalculateIndex(unsigned int totalColumns, unsigned int curRow, unsigned int curColumn)
static unsigned int CalculateIndex(unsigned int curRow, unsigned int curColumn)
static unsigned int CalculateIndex(unsigned int row, unsigned int col)
static unsigned int CalculateIndex(unsigned int totalRows, unsigned int totalColumns, unsigned int curRow, unsigned int curColumn)
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode...
template<typename DataType >
unsigned int Nektar::ConstMatrix< DataType >::GetRequiredStorageSize |
( |
MatrixStorage |
type, |
|
|
unsigned int |
rows, |
|
|
unsigned int |
columns, |
|
|
unsigned int |
subDiags = 0 , |
|
|
unsigned int |
superDiags = 0 |
|
) |
| |
|
static |
Definition at line 176 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.
Referenced by Nektar::NekMatrix< DataType, StandardMatrixTag >::GetRequiredStorageSize().
199 subDiags, superDiags);
205 std::string(
"Number of sub- and superdiagonals should ") +
206 std::string(
"be equal for a symmetric banded matrix"));
#define NEKERROR(type, msg)
Assert Level 0 – Fundamental assert which is used whether in FULLDEBUG, DEBUG or OPT compilation mod...
static unsigned int GetRequiredStorageSize(unsigned int rows, unsigned int columns)
static unsigned int GetRequiredStorageSize(unsigned int rows, unsigned int columns)
static unsigned int GetRequiredStorageSize(unsigned int rows, unsigned int columns, unsigned int nSubSuperDiags)
static unsigned int GetRequiredStorageSize(unsigned int rows, unsigned int columns)
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode...
static unsigned int GetRequiredStorageSize(unsigned int totalRows, unsigned int totalColumns, unsigned int subDiags, unsigned int superDiags)
Calculates and returns the storage size required.