LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Static Public Member Functions | Private Types | List of all members
ndarray::detail::EigenPyConverter< Matrix > Class Template Reference

#include <eigen.h>

Inheritance diagram for ndarray::detail::EigenPyConverter< Matrix >:
ndarray::detail::PyConverterBase< Matrix >

Static Public Member Functions

static PyObject * toPython (Matrix const &input, PyObject *owner=NULL)
 
static PyTypeObject const * getPyType ()
 
static bool fromPythonStage1 (PyPtr &p)
 
static bool fromPythonStage2 (PyPtr const &p, Matrix &output)
 
- Static Public Member Functions inherited from ndarray::detail::PyConverterBase< Matrix >
static bool matches (PyObject *arg)
 Check if a Python object might be convertible to T. More...
 
static int fromPython (PyObject *arg, Matrix *output)
 Convert a Python object to a C++ object. More...
 

Private Types

typedef SelectEigenView
< Matrix >::Type 
OutputView
 
typedef SelectEigenView
< Matrix const, false >::Type 
InputView
 

Detailed Description

template<typename Matrix>
class ndarray::detail::EigenPyConverter< Matrix >

Definition at line 113 of file eigen.h.

Member Typedef Documentation

template<typename Matrix>
typedef SelectEigenView<Matrix const, false>::Type ndarray::detail::EigenPyConverter< Matrix >::InputView
private

Definition at line 115 of file eigen.h.

template<typename Matrix>
typedef SelectEigenView<Matrix>::Type ndarray::detail::EigenPyConverter< Matrix >::OutputView
private

Definition at line 114 of file eigen.h.

Member Function Documentation

template<typename Matrix>
static bool ndarray::detail::EigenPyConverter< Matrix >::fromPythonStage1 ( PyPtr p)
inlinestatic

Definition at line 126 of file eigen.h.

126  {
128  }
static bool fromPythonStage1(PyPtr &p)
Check if a Python object is convertible to T and optionally begin the conversion by replacing the inp...
template<typename Matrix>
static bool ndarray::detail::EigenPyConverter< Matrix >::fromPythonStage2 ( PyPtr const &  p,
Matrix &  output 
)
inlinestatic

Definition at line 130 of file eigen.h.

130  {
131  InputView v;
132  if (!PyConverter<InputView>::fromPythonStage2(p, v)) return false;
133  output = v;
134  return true;
135  }
SelectEigenView< Matrix const, false >::Type InputView
Definition: eigen.h:115
template<typename Matrix>
static PyTypeObject const* ndarray::detail::EigenPyConverter< Matrix >::getPyType ( )
inlinestatic

Definition at line 122 of file eigen.h.

122  {
123  return &PyArray_Type;
124  }
template<typename Matrix>
static PyObject* ndarray::detail::EigenPyConverter< Matrix >::toPython ( Matrix const &  input,
PyObject *  owner = NULL 
)
inlinestatic

Definition at line 118 of file eigen.h.

118  {
119  return PyConverter<OutputView>::toPython(ndarray::copy(input), owner);
120  }
static PyObject * toPython(T const &input)
Convert a C++ object to a new Python object.
SelectEigenView< T >::Type copy(Eigen::EigenBase< T > const &other)
Copy an arbitrary Eigen expression into a new EigenView.
Definition: eigen.h:390

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