Nektar++
Functions
Python/MatrixKey.cpp File Reference
#include <LocalRegions/MatrixKey.h>
#include <vector>
#include <LibUtilities/Python/NekPyConfig.hpp>
#include <boost/python/suite/indexing/map_indexing_suite.hpp>

Go to the source code of this file.

Functions

MatrixKeyMatrixKey_Init (const StdRegions::MatrixType matType, const LibUtilities::ShapeType shapeType, const StdRegions::StdExpansionSharedPtr exp, const py::object &constFactorMap, const py::object &varCoeffMap)
 
void export_MatrixKey ()
 Export for MatrixKey enumeration. More...
 

Function Documentation

◆ export_MatrixKey()

void export_MatrixKey ( )

Export for MatrixKey enumeration.

Definition at line 69 of file Python/MatrixKey.cpp.

70{
71 py::class_<MatrixKey, py::bases<StdRegions::StdMatrixKey>>("MatrixKey",
72 py::no_init)
73 .def("__init__",
74 py::make_constructor(&MatrixKey_Init, py::default_call_policies(),
75 (py::arg("matType"), py::arg("shapeType"),
76 py::arg("exp"),
77 py::arg("constFactorMap") = py::object(),
78 py::arg("varCoeffMap") = py::object())));
79}
MatrixKey * MatrixKey_Init(const StdRegions::MatrixType matType, const LibUtilities::ShapeType shapeType, const StdRegions::StdExpansionSharedPtr exp, const py::object &constFactorMap, const py::object &varCoeffMap)

References MatrixKey_Init().

Referenced by BOOST_PYTHON_MODULE().

◆ MatrixKey_Init()

MatrixKey * MatrixKey_Init ( const StdRegions::MatrixType  matType,
const LibUtilities::ShapeType  shapeType,
const StdRegions::StdExpansionSharedPtr  exp,
const py::object &  constFactorMap,
const py::object &  varCoeffMap 
)

Definition at line 44 of file Python/MatrixKey.cpp.

49{
52
53 if (!constFactorMap.is_none())
54 {
55 tmp = py::extract<StdRegions::ConstFactorMap>(constFactorMap);
56 }
57
58 if (!varCoeffMap.is_none())
59 {
60 tmp2 = py::extract<StdRegions::VarCoeffMap>(varCoeffMap);
61 }
62
63 return new MatrixKey(matType, shapeType, *exp, tmp, tmp2);
64}
std::map< ConstFactorType, NekDouble > ConstFactorMap
Definition: StdRegions.hpp:430
static ConstFactorMap NullConstFactorMap
Definition: StdRegions.hpp:431
static VarCoeffMap NullVarCoeffMap
Definition: StdRegions.hpp:376
std::map< StdRegions::VarCoeffType, VarCoeffEntry > VarCoeffMap
Definition: StdRegions.hpp:375

References Nektar::StdRegions::NullConstFactorMap, and Nektar::StdRegions::NullVarCoeffMap.

Referenced by export_MatrixKey().