A boost.python "object manager" (subclass of object) for numpy.void. More...
#include <scalars.hpp>
Public Member Functions | |
BOOST_PYTHON_FORWARD_OBJECT_CONSTRUCTORS (void_, object) | |
void_ | copy () const |
Copy the scalar (deep for all non-object fields). | |
void_ | view (dtype const &dt) const |
Return a view of the scalar with the given dtype. | |
void_ (Py_ssize_t size) | |
Construct a new array scalar with the given size and void dtype. | |
Static Private Member Functions | |
static python::detail::new_reference | convert (object_cref arg, bool align) |
A boost.python "object manager" (subclass of object) for numpy.void.
Definition at line 27 of file scalars.hpp.
boost::numpy::void_::void_ | ( | Py_ssize_t | size | ) | [explicit] |
Construct a new array scalar with the given size and void dtype.
Data is initialized to zero. One can create a standalone scalar object with a certain dtype "dt" with:
Definition at line 22 of file scalars.cpp.
static python::detail::new_reference boost::numpy::void_::convert | ( | object_cref | arg, |
bool | align | ||
) | [static, private] |
void_ boost::numpy::void_::copy | ( | ) | const |
Copy the scalar (deep for all non-object fields).
Definition at line 33 of file scalars.cpp.
void_ boost::numpy::void_::view | ( | dtype const & | dt | ) | const |
Return a view of the scalar with the given dtype.
Definition at line 27 of file scalars.cpp.