|
static void * | convertible (PyObject *objPtr) |
|
static void | decrement (void *objPtr) |
|
static void | construct (PyObject *objPtr, py::converter::rvalue_from_python_stage1_data *data) |
|
Definition at line 85 of file VarCoeffEntry.cpp.
◆ PythonToVarCoeffEntry()
PythonToVarCoeffEntry::PythonToVarCoeffEntry |
( |
| ) |
|
|
inline |
Definition at line 87 of file VarCoeffEntry.cpp.
90 py::type_id<VarCoeffEntry>());
static void construct(PyObject *objPtr, py::converter::rvalue_from_python_stage1_data *data)
static void * convertible(PyObject *objPtr)
◆ construct()
static void PythonToVarCoeffEntry::construct |
( |
PyObject * |
objPtr, |
|
|
py::converter::rvalue_from_python_stage1_data * |
data |
|
) |
| |
|
inlinestatic |
Definition at line 137 of file VarCoeffEntry.cpp.
142 py::object obj((py::handle<>(py::borrowed(objPtr))));
146 ((py::converter::rvalue_from_python_storage<VarCoeffEntry> *)data)
148 data->convertible = storage;
Representation of a variable coefficient.
◆ convertible()
static void* PythonToVarCoeffEntry::convertible |
( |
PyObject * |
objPtr | ) |
|
|
inlinestatic |
Definition at line 92 of file VarCoeffEntry.cpp.
96 py::object obj((py::handle<>(py::borrowed(objPtr))));
97 np::ndarray array = py::extract<np::ndarray>(obj);
100 np::dtype dtype = np::dtype::get_builtin<
101 typename boost::remove_const<NekDouble>::type>();
102 if (dtype != array.get_dtype())
108 if (array.get_nd() != 1)
113 catch (boost::python::error_already_set &)
115 py::handle_exception();
◆ decrement()
static void PythonToVarCoeffEntry::decrement |
( |
void * |
objPtr | ) |
|
|
inlinestatic |
Definition at line 123 of file VarCoeffEntry.cpp.
125 if (!Py_IsInitialized())
134 py::decref((PyObject *)objPtr);