eigenpy 3.12.0
Bindings between Numpy and Eigen using Boost.Python
Loading...
Searching...
No Matches
eigenpy::eigen_allocator_impl_matrix< MatType > Struct Template Reference
Inheritance diagram for eigenpy::eigen_allocator_impl_matrix< MatType >:
[legend]

Public Types

typedef MatType Type
typedef MatType::Scalar Scalar

Static Public Member Functions

static void allocate (PyArrayObject *pyArray, boost::python::converter::rvalue_from_python_storage< MatType > *storage)
template<typename MatrixDerived>
static void copy (PyArrayObject *pyArray, const Eigen::MatrixBase< MatrixDerived > &mat_)
 Copy Python array into the input matrix mat.
template<typename MatrixDerived>
static void copy (const Eigen::MatrixBase< MatrixDerived > &mat_, PyArrayObject *pyArray)
 Copy mat into the Python array using Eigen::Map.

Detailed Description

template<typename MatType>
struct eigenpy::eigen_allocator_impl_matrix< MatType >

Definition at line 305 of file eigen-allocator.hpp.

Member Typedef Documentation

◆ Scalar

template<typename MatType>
typedef MatType::Scalar eigenpy::eigen_allocator_impl_matrix< MatType >::Scalar

Definition at line 307 of file eigen-allocator.hpp.

◆ Type

template<typename MatType>
typedef MatType eigenpy::eigen_allocator_impl_matrix< MatType >::Type

Definition at line 306 of file eigen-allocator.hpp.

Member Function Documentation

◆ allocate()

template<typename MatType>
void eigenpy::eigen_allocator_impl_matrix< MatType >::allocate(PyArrayObject *pyArray,
boost::python::converter::rvalue_from_python_storage< MatType > *storage )
inlinestatic

Definition at line 309 of file eigen-allocator.hpp.

◆ copy() [1/2]

template<typename MatType>
template<typename MatrixDerived>
void eigenpy::eigen_allocator_impl_matrix< MatType >::copy(const Eigen::MatrixBase< MatrixDerived > &mat_,
PyArrayObject *pyArray )
inlinestatic

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

Definition at line 342 of file eigen-allocator.hpp.

◆ copy() [2/2]

template<typename MatType>
template<typename MatrixDerived>
void eigenpy::eigen_allocator_impl_matrix< MatType >::copy(PyArrayObject *pyArray,
const Eigen::MatrixBase< MatrixDerived > &mat_ )
inlinestatic

Copy Python array into the input matrix mat.

Definition at line 324 of file eigen-allocator.hpp.


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