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

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

#include <scalars.hpp>

List of all members.

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)

Detailed Description

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

Todo:
This could have a lot more functionality.

Definition at line 27 of file scalars.hpp.


Constructor & Destructor Documentation

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:

  void_ scalar = void_(dt.get_itemsize()).view(dt);

Definition at line 22 of file scalars.cpp.


Member Function Documentation

static python::detail::new_reference boost::numpy::void_::convert ( object_cref  arg,
bool  align 
) [static, private]

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.


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