47 : m_matrixType(matrixType), m_shapeType(LibUtilities::
eNoShapeType),
48 m_constFactors(
factors), m_varCoeffs(varCoeffs),
49 m_locToGloMap(locToGloMap)
55 : m_matrixType(key.m_matrixType), m_shapeType(shapeType),
56 m_constFactors(key.m_constFactors), m_varCoeffs(key.m_varCoeffs),
57 m_locToGloMap(key.m_locToGloMap)
62 : m_matrixType(key.m_matrixType), m_shapeType(key.m_shapeType),
63 m_constFactors(key.m_constFactors), m_varCoeffs(key.m_varCoeffs),
64 m_locToGloMap(key.m_locToGloMap)
104 StdRegions::ConstFactorMap::const_iterator x, y;
108 if (x->second < y->second)
112 if (x->second > y->second)
129 StdRegions::VarCoeffMap::const_iterator x, y;
133 if (x->second.GetHash() < y->second.GetHash())
137 if (x->second.GetHash() > y->second.GetHash())
170 os <<
"Number of variable coefficients: " << rhs.
GetNVarCoeffs() << endl;
Describes a matrix with ordering defined by a local to global map.
const StdRegions::ConstFactorMap & GetConstFactors() const
Returns all the constants.
int GetNVarCoeffs() const
int GetNConstFactors() const
Returns the number of constants defined for this matrix.
virtual ~GlobalMatrixKey()
Destructor.
std::weak_ptr< AssemblyMap > m_locToGloMap
Pointer to the local to global mapping.
StdRegions::MatrixType GetMatrixType() const
Return the matrix type.
LibUtilities::ShapeType m_shapeType
Stores the expansion/shape type that the matrix is to be based on.
GlobalMatrixKey()
Default constructor.
StdRegions::VarCoeffMap m_varCoeffs
StdRegions::ConstFactorMap m_constFactors
StdRegions::MatrixType m_matrixType
Stores the matrix type based on the enum StdRegions::MatrixType.
std::ostream & operator<<(std::ostream &os, const GlobalLinSysKey &rhs)
Writes information about the object to a given stream.
bool operator<(const GlobalLinSysKey &lhs, const GlobalLinSysKey &rhs)
std::shared_ptr< AssemblyMap > AssemblyMapSharedPtr
const char *const ConstFactorTypeMap[]
std::map< ConstFactorType, NekDouble > ConstFactorMap
std::map< StdRegions::VarCoeffType, VarCoeffEntry > VarCoeffMap
StdRegions::ConstFactorMap factors
The above copyright notice and this permission notice shall be included.