A boost.python "object manager" (subclass of object) for numpy.matrix. More...
#include <matrix.hpp>
Public Member Functions | |
BOOST_PYTHON_FORWARD_OBJECT_CONSTRUCTORS (matrix, ndarray) | |
matrix | copy () const |
Copy the scalar (deep for all non-object fields). | |
matrix (python::object const &obj, dtype const &dt, bool copy=true) | |
Equivalent to "numpy.matrix(obj,dt,copy)" in Python. | |
matrix (python::object const &obj, bool copy=true) | |
Equivalent to "numpy.matrix(obj,copy=copy)" in Python. | |
matrix | transpose () const |
Transpose the matrix. | |
matrix | view (dtype const &dt) const |
Return a view of the matrix with the given dtype. | |
Static Private Member Functions | |
static python::object | construct (object_cref obj, dtype const &dt, bool copy) |
static python::object | construct (object_cref obj, bool copy) |
A boost.python "object manager" (subclass of object) for numpy.matrix.
Definition at line 32 of file matrix.hpp.
boost::numpy::matrix::matrix | ( | python::object const & | obj, |
dtype const & | dt, | ||
bool | copy = true |
||
) | [inline, explicit] |
Equivalent to "numpy.matrix(obj,dt,copy)" in Python.
Definition at line 41 of file matrix.hpp.
boost::numpy::matrix::matrix | ( | python::object const & | obj, |
bool | copy = true |
||
) | [inline, explicit] |
Equivalent to "numpy.matrix(obj,copy=copy)" in Python.
Definition at line 45 of file matrix.hpp.
static python::object boost::numpy::matrix::construct | ( | object_cref | obj, |
dtype const & | dt, | ||
bool | copy | ||
) | [static, private] |
static python::object boost::numpy::matrix::construct | ( | object_cref | obj, |
bool | copy | ||
) | [static, private] |
matrix boost::numpy::matrix::copy | ( | ) | const |
Copy the scalar (deep for all non-object fields).
Reimplemented from boost::numpy::ndarray.
Definition at line 56 of file matrix.cpp.
matrix boost::numpy::matrix::transpose | ( | ) | const |
Transpose the matrix.
Reimplemented from boost::numpy::ndarray.
Definition at line 62 of file matrix.cpp.
matrix boost::numpy::matrix::view | ( | dtype const & | dt | ) | const |
Return a view of the matrix with the given dtype.
Reimplemented from boost::numpy::ndarray.
Definition at line 50 of file matrix.cpp.