wbc
pygen::eigen_matrix_to_numpy_array< MatrixType > Struct Template Reference

#include <eigen_conversion.h>

Static Public Member Functions

static PyObject * convert (const MatrixType &mat)
 

Detailed Description

template<typename MatrixType>
struct pygen::eigen_matrix_to_numpy_array< MatrixType >

Conversion from an Eigen Matrix to an numpy ndarray This convert Eigen::MatrixType of type T (int, float, double, ...) to an numpy.array The template MatrixType should be a type as Eigen::Matrix<T, rows, cols> Note it should also work for Eigen::Array

Member Function Documentation

◆ convert()

template<typename MatrixType >
static PyObject * pygen::eigen_matrix_to_numpy_array< MatrixType >::convert ( const MatrixType & mat)
inlinestatic

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