version 0.4.1
Python::Conversion< autodiff::Real< order, T > > Struct Template Reference

Conversion specialization for autodiff::Real type. More...

#include <ikarus/utils/pythonautodiffdefinitions.hh>

Public Types

enum  { useDefaultConstructorConversion = true }
 

Static Public Member Functions

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...
 

Detailed Description

template<std::size_t order, class T>
struct Python::Conversion< autodiff::Real< order, T > >
Template Parameters
orderThe order of autodiff::Real.
TThe underlying type of autodiff::Real.

Member Enumeration Documentation

◆ anonymous enum

template<std::size_t order, class T >
anonymous enum
Enumerator
useDefaultConstructorConversion 

Member Function Documentation

◆ 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
listPython list object to be populated.
vThe 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
vThe autodiff::Real object to be populated.
Returns
PyObject* representing the autodiff::Real object.

The documentation for this struct was generated from the following file: