wbc
pygen::numpy_array_to_eigen_vector< VectorType > Struct Template Reference

#include <eigen_conversion.h>

Public Member Functions

 numpy_array_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<typename VectorType>
struct pygen::numpy_array_to_eigen_vector< VectorType >

Conversion from a numpy ndarray to an Eigen Vector This convert numpy.array of dtype 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

◆ numpy_array_to_eigen_vector()

template<typename VectorType >
pygen::numpy_array_to_eigen_vector< VectorType >::numpy_array_to_eigen_vector ( )
inline

Member Function Documentation

◆ construct()

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

◆ convertible()

template<typename VectorType >
static void * pygen::numpy_array_to_eigen_vector< VectorType >::convertible ( PyObject * obj_ptr)
inlinestatic

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