Object manager and various utilities for numpy.ndarray. More...
#include <boost/python.hpp>
#include <boost/utility/enable_if.hpp>
#include <boost/type_traits/is_integral.hpp>
#include <boost/numpy/numpy_object_mgr_traits.hpp>
#include <boost/numpy/dtype.hpp>
#include <vector>
Go to the source code of this file.
Classes | |
struct | boost::numpy::ndarray::array_struct |
An internal struct that's byte-compatible with PyArrayObject. More... | |
class | boost::numpy::ndarray |
A boost.python "object manager" (subclass of object) for numpy.ndarray. More... | |
Namespaces | |
namespace | boost |
namespace | boost::numpy |
namespace | boost::numpy::detail |
namespace | boost::python |
namespace | boost::python::converter |
Functions | |
ndarray | boost::numpy::array (python::object const &obj) |
Construct a new array from an arbitrary Python sequence. | |
ndarray | boost::numpy::array (python::object const &obj, dtype const &dt) |
ndarray | boost::numpy::empty (python::tuple const &shape, dtype const &dt) |
Construct a new array with the given shape and data type, with data left uninitialized. | |
ndarray | boost::numpy::empty (int nd, Py_intptr_t const *shape, dtype const &dt) |
template<typename Container > | |
ndarray | boost::numpy::from_data (void *data, dtype const &dt, Container shape, Container strides, python::object const &owner) |
Construct a new ndarray object from a raw pointer. | |
template<typename Container > | |
ndarray | boost::numpy::from_data (void const *data, dtype const &dt, Container shape, Container strides, python::object const &owner) |
Construct a new ndarray object from a raw pointer. | |
ndarray | boost::numpy::detail::from_data_impl (void *data, dtype const &dt, std::vector< Py_intptr_t > const &shape, std::vector< Py_intptr_t > const &strides, python::object const &owner, bool writeable) |
template<typename Container > | |
ndarray | boost::numpy::detail::from_data_impl (void *data, dtype const &dt, Container shape, Container strides, python::object const &owner, bool writeable, typename boost::enable_if< boost::is_integral< typename Container::value_type > >::type *enabled=NULL) |
ndarray | boost::numpy::detail::from_data_impl (void *data, dtype const &dt, python::object const &shape, python::object const &strides, python::object const &owner, bool writeable) |
ndarray | boost::numpy::from_object (python::object const &obj, dtype const &dt, int nd_min, int nd_max, ndarray::bitflag flags=ndarray::NONE) |
Transform an arbitrary object into a numpy array with the given requirements. | |
ndarray | boost::numpy::from_object (python::object const &obj, dtype const &dt, int nd, ndarray::bitflag flags=ndarray::NONE) |
ndarray | boost::numpy::from_object (python::object const &obj, dtype const &dt, ndarray::bitflag flags=ndarray::NONE) |
ndarray | boost::numpy::from_object (python::object const &obj, int nd_min, int nd_max, ndarray::bitflag flags=ndarray::NONE) |
ndarray | boost::numpy::from_object (python::object const &obj, int nd, ndarray::bitflag flags=ndarray::NONE) |
ndarray | boost::numpy::from_object (python::object const &obj, ndarray::bitflag flags=ndarray::NONE) |
boost::python::converter::NUMPY_OBJECT_MANAGER_TRAITS (numpy::ndarray) | |
ndarray::bitflag | boost::numpy::operator& (ndarray::bitflag a, ndarray::bitflag b) |
ndarray::bitflag | boost::numpy::operator| (ndarray::bitflag a, ndarray::bitflag b) |
ndarray | boost::numpy::zeros (python::tuple const &shape, dtype const &dt) |
Construct a new array with the given shape and data type, with data initialized to zero. | |
ndarray | boost::numpy::zeros (int nd, Py_intptr_t const *shape, dtype const &dt) |
Object manager and various utilities for numpy.ndarray.
Definition in file ndarray.hpp.