Conversion specialization for autodiff::Real type.
More...
#include <ikarus/utils/pythonautodiffdefinitions.hh>
|
static void | toC (PyObject *list, autodiff::Real< order, T > &v) |
| Convert autodiff::Real to PyObject*. More...
|
|
static PyObject * | toPy (const autodiff::Real< order, T > &v) |
| Convert PyObject* to autodiff::Real. More...
|
|
template<std::size_t order, class T>
struct Python::Conversion< autodiff::Real< order, T > >
- Template Parameters
-
order | The order of autodiff::Real. |
T | The underlying type of autodiff::Real. |
◆ anonymous enum
template<std::size_t order, class T >
Enumerator |
---|
useDefaultConstructorConversion | |
◆ toC()
template<std::size_t order, class T >
static void Python::Conversion< autodiff::Real< order, T > >::toC |
( |
PyObject * |
list, |
|
|
autodiff::Real< order, T > & |
v |
|
) |
| |
|
inlinestatic |
- Parameters
-
list | Python list object to be populated. |
v | The autodiff::Real object to be converted. |
◆ toPy()
template<std::size_t order, class T >
static PyObject * Python::Conversion< autodiff::Real< order, T > >::toPy |
( |
const autodiff::Real< order, T > & |
v | ) |
|
|
inlinestatic |
- Parameters
-
v | The autodiff::Real object to be populated. |
- Returns
- PyObject* representing the autodiff::Real object.
The documentation for this struct was generated from the following file: