wbc
pygen::python_list_to_eigen_matrix< MatrixType > Struct Template Reference

#include <eigen_conversion.h>

Public Member Functions

 python_list_to_eigen_matrix ()
 

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 MatrixType>
struct pygen::python_list_to_eigen_matrix< MatrixType >

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

Constructor & Destructor Documentation

◆ python_list_to_eigen_matrix()

template<class MatrixType >
pygen::python_list_to_eigen_matrix< MatrixType >::python_list_to_eigen_matrix ( )
inline

Member Function Documentation

◆ construct()

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

◆ convertible()

template<class MatrixType >
static void * pygen::python_list_to_eigen_matrix< MatrixType >::convertible ( PyObject * obj_ptr)
inlinestatic

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