49 : m_shapeType(shapeType), m_base(stdExpansion.GetBase()),
50 m_ncoeffs(stdExpansion.GetNcoeffs()), m_matrixType(matrixType),
51 m_nodalPointsType(nodalType), m_factors(factorMap),
52 m_varcoeffs(varCoeffMap), m_varcoeff_hashes(varCoeffMap.size())
56 for (
auto &x : varCoeffMap)
59 x.second.GetValue().begin() +
68 : m_shapeType(rhs.m_shapeType), m_base(rhs.m_base),
69 m_ncoeffs(rhs.m_ncoeffs), m_matrixType(matrixType),
70 m_nodalPointsType(rhs.m_nodalPointsType), m_factors(rhs.m_factors),
71 m_varcoeffs(rhs.m_varcoeffs), m_varcoeff_hashes(rhs.m_varcoeff_hashes)
76 : m_shapeType(rhs.m_shapeType), m_base(rhs.m_base),
77 m_ncoeffs(rhs.m_ncoeffs), m_matrixType(rhs.m_matrixType),
78 m_nodalPointsType(rhs.m_nodalPointsType), m_factors(rhs.m_factors),
79 m_varcoeffs(rhs.m_varcoeffs), m_varcoeff_hashes(rhs.m_varcoeff_hashes)
156 if (x->second < y->second)
160 if (x->second > y->second)
261 if (x.second.GetValue() != y->second.GetValue())
266 for (
unsigned int i = 0; i < lhs.
m_varcoeffs.size(); ++i)
281 <<
", Ncoeffs: " << rhs.
GetNcoeffs() << std::endl;
285 os <<
"Constants: " << endl;
294 os <<
"Variable coefficients: " << endl;
303 for (
unsigned int i = 0;
306 os << rhs.
GetBase()[i]->GetBasisKey();
The base class for all shapes.
int GetTotPoints() const
This function returns the total number of quadrature points used in the element.
friend bool operator<(const StdMatrixKey &lhs, const StdMatrixKey &rhs)
Used for finding value given the key in NekManager.
const Array< OneD, const LibUtilities::BasisSharedPtr > & GetBase() const
LibUtilities::ShapeType GetShapeType() const
LibUtilities::PointsType m_nodalPointsType
StdMatrixKey operator=(const StdMatrixKey &inKey)
Array< OneD, const LibUtilities::BasisSharedPtr > m_base
const VarCoeffMap & GetVarCoeffs() const
MatrixType GetMatrixType() const
const ConstFactorMap & GetConstFactors() const
friend bool operator==(const StdMatrixKey &lhs, const StdMatrixKey &rhs)
LibUtilities::ShapeType m_shapeType
std::vector< std::size_t > GetVarCoeffHashes() const
std::vector< std::size_t > m_varcoeff_hashes
const char *const ShapeTypeMap[SIZE_ShapeType]
constexpr unsigned int ShapeTypeDimMap[SIZE_ShapeType]
const char *const VarCoeffTypeMap[]
const char *const ConstFactorTypeMap[]
std::ostream & operator<<(std::ostream &os, const StdMatrixKey &rhs)
const char *const MatrixTypeMap[]
std::map< ConstFactorType, NekDouble > ConstFactorMap
std::map< StdRegions::VarCoeffType, VarCoeffEntry > VarCoeffMap
std::size_t hash_range(Iter first, Iter last)
void hash_combine(std::size_t &seed)
bool operator()(const StdMatrixKey &lhs, const StdMatrixKey &rhs) const