Definition at line 59 of file VarCoeffEntry.cpp.
◆ convert()
static PyObject* VarCoeffEntryToPython::convert |
( |
VarCoeffEntry const & |
entry | ) |
|
|
inlinestatic |
Definition at line 61 of file VarCoeffEntry.cpp.
66 #if PY_MAJOR_VERSION == 2
67 py::object capsule(py::handle<>(PyCObject_FromVoidPtr(
70 py::object capsule(py::handle<>(
75 py::incref(np::from_data(entry.GetValue().data(),
76 np::dtype::get_builtin<NekDouble>(),
77 py::make_tuple(entry.GetValue().size()),
78 py::make_tuple(
sizeof(
NekDouble)), capsule)
void CapsuleDestructor(PyObject *ptr)
Representation of a variable coefficient.
References CapsuleDestructor(), and Nektar::StdRegions::VarCoeffEntry::GetValue().