Template Struct eigen_allocator_impl_matrix

Inheritance Relationships

Derived Type

Struct Documentation

template<typename MatType>
struct eigen_allocator_impl_matrix

Subclassed by eigenpy::eigen_allocator_impl< MatType, Eigen::MatrixBase< MatType > >

Public Types

typedef MatType Type
typedef MatType::Scalar Scalar

Public Static Functions

static inline void allocate(PyArrayObject *pyArray, boost::python::converter::rvalue_from_python_storage<MatType> *storage)
template<typename MatrixDerived>
static inline void copy(PyArrayObject *pyArray, const Eigen::MatrixBase<MatrixDerived> &mat_)

Copy Python array into the input matrix mat.

template<typename MatrixDerived>
static inline void copy(const Eigen::MatrixBase<MatrixDerived> &mat_, PyArrayObject *pyArray)

Copy mat into the Python array using Eigen::Map.