Public Member Functions | Static Private Member Functions
boost::numpy::matrix Class Reference

A boost.python "object manager" (subclass of object) for numpy.matrix. More...

#include <matrix.hpp>

Inheritance diagram for boost::numpy::matrix:
Inheritance graph
[legend]

List of all members.

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)

Detailed Description

A boost.python "object manager" (subclass of object) for numpy.matrix.

Definition at line 32 of file matrix.hpp.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]

Copy the scalar (deep for all non-object fields).

Reimplemented from boost::numpy::ndarray.

Definition at line 56 of file matrix.cpp.

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.


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


boost_numpy
Author(s): Jim Bosch, Ankit Daftery
autogenerated on Fri Aug 28 2015 10:10:40