42 namespace MultiRegions
64 m_solnType(locToGloMap->GetGlobalSysSolnType()),
65 m_varFactors(varFactors),
66 m_varFactors_hashes(varFactors.size())
70 for (VarFactorsMap::const_iterator x = varFactors.begin();
71 x != varFactors.end(); ++x)
74 x->second.begin() + x->second.num_elements());
143 return (*dynamic_cast<const GlobalMatrixKey*>(&lhs)
159 os <<
"Solution Type: " 165 <<
": " << x.second << endl;
167 os <<
"Number of variable coefficients: " 170 os <<
"Number of variable factors : " virtual ~GlobalLinSysKey()
Destructor.
std::size_t hash_range(Iter first, Iter last)
std::vector< std::size_t > m_varFactors_hashes
GlobalSysSolnType m_solnType
Store the solution type associated with the linear system. This may be none, full matrix...
const StdRegions::ConstFactorMap & GetConstFactors() const
Returns all the constants.
VarFactorsMap m_varFactors
friend bool operator<(const GlobalLinSysKey &lhs, const GlobalLinSysKey &rhs)
Less-than operator for GlobalLinSysKey comparison.
void hash_combine(std::size_t &seed)
std::map< ConstFactorType, NekDouble > ConstFactorMap
const char *const ConstFactorTypeMap[]
const char *const ShapeTypeMap[]
int GetNVarCoeffs() const
std::shared_ptr< AssemblyMap > AssemblyMapSharedPtr
const char *const GlobalSysSolnTypeMap[]
StdRegions::MatrixType GetMatrixType() const
Return the matrix type.
std::ostream & operator<<(std::ostream &os, const GlobalLinSysKey &rhs)
Writes information about the object to a given stream.
std::map< StdRegions::VarCoeffType, Array< OneD, NekDouble > > VarCoeffMap
GlobalLinSysKey(const StdRegions::MatrixType matrixType, const AssemblyMapSharedPtr &locToGloMap=NullAssemblyMapSharedPtr, const StdRegions::ConstFactorMap &factors=StdRegions::NullConstFactorMap, const StdRegions::VarCoeffMap &varCoeffs=StdRegions::NullVarCoeffMap, const VarFactorsMap &varFactos=NullVarFactorsMap)
const char *const MatrixTypeMap[]
LibUtilities::ShapeType GetShapeType() const
Return the expansion type associated with key.
Describe a linear system.
Describes a matrix with ordering defined by a local to global map.
int GetNConstFactors() const
Returns the number of constants defined for this matrix.
int GetNVarFactors() const
GlobalSysSolnType GetGlobalSysSolnType() const
Return the associated solution type.
StandardMatrixTag boost::call_traits< LhsDataType >::const_reference rhs
std::map< StdRegions::ConstFactorType, Array< OneD, NekDouble > > VarFactorsMap