40 #include <boost/python/suite/indexing/map_indexing_suite.hpp> 48 const py::object &constFactorMap,
49 const py::object &varCoeffMap)
54 if (!constFactorMap.is_none())
56 tmp = py::extract<ConstFactorMap>(constFactorMap);
59 if (!varCoeffMap.is_none())
61 tmp2 = py::extract<VarCoeffMap>(varCoeffMap);
64 return new StdMatrixKey(matType, shapeType, *exp, tmp, tmp2);
77 py::class_<ConstFactorMap>(
"ConstFactorMap")
78 .def(py::map_indexing_suite<ConstFactorMap>());
81 py::class_<VarCoeffMap>(
"VarCoeffMap")
82 .def(py::map_indexing_suite<VarCoeffMap>());
84 py::class_<StdMatrixKey>(
"StdMatrixKey", py::no_init)
85 .def(
"__init__", py::make_constructor(
87 (py::arg(
"matType"), py::arg(
"shapeType"), py::arg(
"exp"),
88 py::arg(
"constFactorMap") = py::object(),
89 py::arg(
"varCoeffMap") = py::object())))
std::map< ConstFactorType, NekDouble > ConstFactorMap
StdMatrixKey * StdMatrixKey_Init(const MatrixType matType, const LibUtilities::ShapeType shapeType, const StdExpansionSharedPtr exp, const py::object &constFactorMap, const py::object &varCoeffMap)
MatrixType GetMatrixType() const
const char *const ConstFactorTypeMap[]
std::shared_ptr< StdExpansion > StdExpansionSharedPtr
std::map< StdRegions::VarCoeffType, Array< OneD, NekDouble > > VarCoeffMap
const char *const MatrixTypeMap[]
const LibUtilities::BasisSharedPtr GetBasis(int dir) const
The namespace associated with the the StdRegions library (StdRegions introduction) ...
const char *const VarCoeffTypeMap[]
#define NEKPY_WRAP_ENUM(ENUMNAME, MAPNAME)
LibUtilities::ShapeType GetShapeType() const
static VarCoeffMap NullVarCoeffMap
void export_StdMatrixKey()
Export for StdMatrixKey enumeration.
static ConstFactorMap NullConstFactorMap