numpycpp
 All Classes Namespaces Files Functions Typedefs Pages
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
numpy.hpp File Reference

Things are in here. More...

#include <boost/python.hpp>
#include <boost/python/object.hpp>
#include "assert.h"

Go to the source code of this file.

Classes

class  boost::python::numpy::mw_py_impl::incomplete< T >
 
class  boost::python::numpy::arraytbase
 This is the base class from which type specific variants are derived. More...
 
class  boost::python::numpy::arrayt< T >
 This class defines operators () and [] to allow for direct memory access to array elements of type T. More...
 

Namespaces

 boost::python::numpy
 Everything of this library can be found in this namespace.
 
 boost::python::numpy::mw_py_impl
 Some implementation details are in here.
 

Macros

#define NPY_NO_DEPRECATED_API   NPY_1_7_API_VERSION
 
#define NUMPY_HPP_OFFSET1   x*m[0]
 
#define NUMPY_HPP_OFFSET2   NUMPY_HPP_OFFSET1 + y*m[1]
 
#define NUMPY_HPP_OFFSET3   NUMPY_HPP_OFFSET2 + z*m[2]
 
#define NUMPY_HPP_OFFSET4   NUMPY_HPP_OFFSET3 + w*m[3]
 

Typedefs

typedef Py_ssize_t boost::python::numpy::ssize_t
 Synonymous for Py_ssize_t.
 

Enumerations

enum  { MAX_DIM = 32 }
 Equal to NPY_MAX_DIMS. Provided so that the numpy headers don't have to be included.
 

Functions

void boost::python::numpy::importNumpyAndRegisterTypes ()
 Initializes things. More...
 
template<class T >
int boost::python::numpy::getItemtype ()
 Obtain numpy's data type number from template parameter T. More...
 
int boost::python::numpy::getItemtype (const object &arr)
 Obtain numpy's data type number from an boost-python object which should hold a ndarray. More...
 
object boost::python::numpy::zeros (int rank, const Py_ssize_t *dims, int type)
 Creates a new ndarray filled with zeros. More...
 
object boost::python::numpy::empty (int rank, const Py_ssize_t *dims, int type)
 Create a new ndarray with uninitialized memory. More...
 
template<class T >
bool boost::python::numpy::isCompatibleType (int id)
 Determines if a numpy data type identified by the type number id is binary compatible with the c-type given by T. More...
 
template<class T , class Idx1 , class Idx2 , class Idx3 >
void boost::python::numpy::mw_py_impl::gridded_data_ccons (T *dst, const T *src, const Idx1 *dims, const Idx2 *dst_strides, const Idx3 *src_strides, boost::mpl::int_< 0 >)
 
template<class T , class Idx1 , class Idx2 , class Idx3 , int dim>
void boost::python::numpy::mw_py_impl::gridded_data_ccons (T *dst, const T *src, const Idx1 *dims, const Idx2 *dst_strides, const Idx3 *src_strides, boost::mpl::int_< dim >)
 
template<class T , int rank>
static object boost::python::numpy::copy (const int *dims, const T *src, const int *strides)
 Copy contents of n-dimensional non-contiguous arrays. More...
 
template<class T , int rank>
static void boost::python::numpy::copy (T *dst, const int *dims, const int *strides, const object &pyarr)
 Copy contents of n-dimensional non-contiguous arrays. Inverse variant. More...
 

Detailed Description

Things are in here.

Definition in file numpy.hpp.