Shiboken::Numpy Namespace

namespace Shiboken::Numpy

Namespace for numpy-related functionality. More...

Header: #include <sbkcpptonumpy.h>

Classes

struct View

Functions

bool check(PyObject *pyIn)
PyObject *createByteArray1(Py_ssize_t size, const uint8_t *data)
PyObject *createDoubleArray1(Py_ssize_t size, const double *data)
PyObject *createFloatArray1(Py_ssize_t size, const float *data)
PyObject *createIntArray1(Py_ssize_t size, const int *data)

Detailed Description

Classes

class View

A simple view of an up to 2 dimensional, C-contiguous array of a standard type. It can be passed to compilation units that do not include the numpy headers. More...

Function Documentation

bool Numpy::check(PyObject *pyIn)

Check whether the object pyIn is a PyArrayObject

PyObject *Numpy::createByteArray1(Py_ssize_t size, const uint8_t *data)

Creates a one-dimensional numpy array (PyArrayObject) of type uint8/NPY_BYTE of size from data.

PyObject *Numpy::createDoubleArray1(Py_ssize_t size, const double *data)

Creates a one-dimensional numpy array (PyArrayObject) of type double/NPY_DOUBLE of size from data.

PyObject *Numpy::createFloatArray1(Py_ssize_t size, const float *data)

Creates a one-dimensional numpy array (PyArrayObject) of type float/NPY_FLOAT of size from data.

PyObject *Numpy::createIntArray1(Py_ssize_t size, const int *data)

Creates a one-dimensional numpy array (PyArrayObject) of type int/NPY_INT of size from data.