49 return py::make_tuple(pts->GetZ(), pts->GetW());
61 "BasisKey", py::init<const BasisType &, const int, const PointsKey &>())
63 .def(
"GetNumModes", &BasisKey::GetNumModes)
64 .def(
"GetTotNumModes", &BasisKey::GetTotNumModes)
65 .def(
"GetNumPoints", &BasisKey::GetNumPoints)
66 .def(
"GetTotNumPoints", &BasisKey::GetTotNumPoints)
67 .def(
"GetBasisType", &BasisKey::GetBasisType)
68 .def(
"GetPointsKey", &BasisKey::GetPointsKey)
69 .def(
"GetPointsType", &BasisKey::GetPointsType)
70 .def(
"Collocation", &BasisKey::Collocation);
72 py::class_<Basis, std::shared_ptr<Basis>>(
"Basis", py::no_init)
75 .staticmethod(
"Create")
77 .def(
"GetNumModes", &Basis::GetNumModes)
78 .def(
"GetTotNumModes", &Basis::GetTotNumModes)
79 .def(
"GetNumPoints", &Basis::GetNumPoints)
80 .def(
"GetTotNumPoints", &Basis::GetTotNumPoints)
81 .def(
"GetBasisType", &Basis::GetBasisType)
82 .def(
"GetPointsKey", &Basis::GetPointsKey)
83 .def(
"GetBasisKey", &Basis::GetBasisKey)
84 .def(
"GetPointsType", &Basis::GetBasisType)
85 .def(
"Initialize", &Basis::Initialize)
87 .def(
"GetZ", &Basis::GetZ,
88 py::return_value_policy<py::copy_const_reference>())
89 .def(
"GetW", &Basis::GetW,
90 py::return_value_policy<py::copy_const_reference>())
93 .def(
"GetBdata", &Basis::GetBdata,
94 py::return_value_policy<py::copy_const_reference>())
95 .def(
"GetDbdata", &Basis::GetDbdata,
96 py::return_value_policy<py::copy_const_reference>());
#define NEKPY_WRAP_ENUM(ENUMNAME, MAPNAME)
BasisSharedPtr Basis_Create(const BasisKey &pts)
void export_Basis()
Basis exports.
py::tuple Basis_GetZW(BasisSharedPtr pts)
Describes the specification for a Basis.
BasisManagerT & BasisManager(void)
std::shared_ptr< Basis > BasisSharedPtr
const char *const BasisTypeMap[]