LSSTApplications  10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
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: