39#include <boost/python/suite/indexing/map_indexing_suite.hpp>
47 const py::object &constFactorMap,
48 const py::object &varCoeffMap)
53 if (!constFactorMap.is_none())
55 tmp = py::extract<StdRegions::ConstFactorMap>(constFactorMap);
58 if (!varCoeffMap.is_none())
60 tmp2 = py::extract<StdRegions::VarCoeffMap>(varCoeffMap);
63 return new MatrixKey(matType, shapeType, *exp, tmp, tmp2);
71 py::class_<MatrixKey, py::bases<StdRegions::StdMatrixKey>>(
"MatrixKey",
75 (py::arg(
"matType"), py::arg(
"shapeType"),
77 py::arg(
"constFactorMap") = py::object(),
78 py::arg(
"varCoeffMap") = py::object())));
void export_MatrixKey()
Export for MatrixKey enumeration.
MatrixKey * MatrixKey_Init(const StdRegions::MatrixType matType, const LibUtilities::ShapeType shapeType, const StdRegions::StdExpansionSharedPtr exp, const py::object &constFactorMap, const py::object &varCoeffMap)
std::shared_ptr< StdExpansion > StdExpansionSharedPtr
std::map< ConstFactorType, NekDouble > ConstFactorMap
static ConstFactorMap NullConstFactorMap
static VarCoeffMap NullVarCoeffMap
std::map< StdRegions::VarCoeffType, VarCoeffEntry > VarCoeffMap