Implementation in here. More...
#include "numpy.hpp"
#include "numpy/ndarrayobject.h"
#include "assert.h"
#include <stdexcept>
#include <cstring>
Go to the source code of this file.
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 | CAST_TO_PPYARRAYOBJECT(p) ((PyArrayObject*)(p)) |
Functions | |
template<class T > | |
void | boost::python::numpy::mw_py_impl::RegisterAllConvertersForType () |
void | boost::python::numpy::importNumpyAndRegisterTypes () |
Initializes things. 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... | |
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... | |
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... | |
Implementation in here.
Definition in file numpy.cpp.