template<typename DataType>
class Nektar::ConstMatrix< DataType >
Definition at line 53 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 128 of file MatrixBase.cpp.
133 if (transpose ==
'T')
159 numRows, numColumns, row, col, numSubDiags, numSuperDiags);
164 ASSERTL1(numSubDiags == numSuperDiags,
165 std::string(
"Number of sub- and superdiagonals should ") +
166 std::string(
"be equal for a symmetric banded matrix"));
182 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 mode...
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode....
@ eLOWER_TRIANGULAR_BANDED
@ ePOSITIVE_DEFINITE_SYMMETRIC_BANDED
@ ePOSITIVE_DEFINITE_SYMMETRIC
@ eUPPER_TRIANGULAR_BANDED
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 row, unsigned int col)
static unsigned int CalculateIndex(unsigned int totalRows, unsigned int totalColumns, 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, unsigned int nSuperDiags)
static unsigned int CalculateIndex(unsigned int curRow, unsigned int curColumn)
static unsigned int CalculateIndex(unsigned int curRow, unsigned int curColumn)
References ASSERTL1, Nektar::UpperTriangularMatrixFuncs::CalculateIndex(), Nektar::SymmetricMatrixFuncs::CalculateIndex(), Nektar::SymmetricBandedMatrixFuncs::CalculateIndex(), Nektar::DiagonalMatrixFuncs::CalculateIndex(), Nektar::LowerTriangularMatrixFuncs::CalculateIndex(), Nektar::FullMatrixFuncs::CalculateIndex(), Nektar::BandedMatrixFuncs::CalculateIndex(), Nektar::eBANDED, Nektar::eDIAGONAL, Nektar::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().
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 186 of file MatrixBase.cpp.
212 rows, columns, subDiags, superDiags);
218 std::string(
"Number of sub- and superdiagonals should ") +
219 std::string(
"be equal for a symmetric banded matrix"));
221 rows, columns, superDiags);
static unsigned int GetRequiredStorageSize(unsigned int totalRows, unsigned int totalColumns, unsigned int subDiags, unsigned int superDiags)
Calculates and returns the storage size required.
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)
static unsigned int GetRequiredStorageSize(unsigned int rows, unsigned int columns)
References ASSERTL1, Nektar::eBANDED, Nektar::eDIAGONAL, Nektar::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::FullMatrixFuncs::GetRequiredStorageSize(), Nektar::TriangularMatrixFuncs::GetRequiredStorageSize(), Nektar::SymmetricMatrixFuncs::GetRequiredStorageSize(), Nektar::DiagonalMatrixFuncs::GetRequiredStorageSize(), Nektar::SymmetricBandedMatrixFuncs::GetRequiredStorageSize(), Nektar::BandedMatrixFuncs::GetRequiredStorageSize(), and NEKERROR.
Referenced by Nektar::NekMatrix< DataType, StandardMatrixTag >::GetRequiredStorageSize().