wbc
pygen::python_list_to_eigen_vector< VectorType > Struct Template Reference

#include <eigen_conversion.h>

Public Member Functions

 python_list_to_eigen_vector ()
 

Static Public Member Functions

static void * convertible (PyObject *obj_ptr)
 
static void construct (PyObject *obj_ptr, py::converter::rvalue_from_python_stage1_data *data)
 

Detailed Description

template<class VectorType>
struct pygen::python_list_to_eigen_vector< VectorType >

Conversion from a python list to an Eigen Vector This convert list of type T (int, float32, float64, ...) to an Eigen::VectorType The template VectorType should be a type as Eigen::Matrix<T, rows, 1> or Eigen::Matrix<T, 1, cols> Note it should also work for Eigen::Array

Constructor & Destructor Documentation

◆ python_list_to_eigen_vector()

template<class VectorType >
pygen::python_list_to_eigen_vector< VectorType >::python_list_to_eigen_vector ( )
inline

Member Function Documentation

◆ construct()

template<class VectorType >
static void pygen::python_list_to_eigen_vector< VectorType >::construct ( PyObject * obj_ptr,
py::converter::rvalue_from_python_stage1_data * data )
inlinestatic

◆ convertible()

template<class VectorType >
static void * pygen::python_list_to_eigen_vector< VectorType >::convertible ( PyObject * obj_ptr)
inlinestatic

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