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.
62 {
63
64
65
66#if PY_MAJOR_VERSION == 2
67 py::object capsule(py::handle<>(PyCObject_FromVoidPtr(
69#else
70 py::object capsule(py::handle<>(
73#endif
74 PyObject *tmp =
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)
79 .ptr());
80
81 return tmp;
82 }
void CapsuleDestructor(PyObject *ptr)
Representation of a variable coefficient.
References CapsuleDestructor(), and Nektar::StdRegions::VarCoeffEntry::GetValue().