wbc
pygen::numpy_array_to_eigen_matrix< MatrixType > Struct Template Reference

#include <eigen_conversion.h>

Public Member Functions

 numpy_array_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<typename MatrixType>
struct pygen::numpy_array_to_eigen_matrix< MatrixType >

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

◆ numpy_array_to_eigen_matrix()

template<typename MatrixType >
pygen::numpy_array_to_eigen_matrix< MatrixType >::numpy_array_to_eigen_matrix ( )
inline

Member Function Documentation

◆ construct()

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

◆ convertible()

template<typename MatrixType >
static void * pygen::numpy_array_to_eigen_matrix< MatrixType >::convertible ( PyObject * obj_ptr)
inlinestatic

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