#include <numpy.h>

Public Member Functions | |
| template<typename... Ix> | |
| const T * | data (Ix... ix) const |
| Pointer access to the data at the given indices. More... | |
| ssize_t | nbytes () const |
| ssize_t | ndim () const |
| Returns the number of dimensions of the array. More... | |
| template<typename... Ix> | |
| const T & | operator() (Ix... index) const |
| template<ssize_t D = Dims, typename = enable_if_t<D == 1 || Dynamic>> | |
| const T & | operator[] (ssize_t index) const |
| ssize_t | shape (ssize_t dim) const |
Returns the shape (i.e. size) of dimension dim More... | |
| template<bool Dyn = Dynamic> | |
| enable_if_t<!Dyn, ssize_t > | size () const |
| template<bool Dyn = Dynamic> | |
| enable_if_t< Dyn, ssize_t > | size () const |
Static Public Member Functions | |
| static constexpr ssize_t | itemsize () |
| Returns the item size, i.e. sizeof(T) More... | |
Protected Member Functions | |
| template<bool Dyn = Dynamic> | |
| unchecked_reference (const void *data, const ssize_t *shape, const ssize_t *strides, enable_if_t<!Dyn, ssize_t >) | |
| template<bool Dyn = Dynamic> | |
| unchecked_reference (const void *data, const ssize_t *shape, const ssize_t *strides, enable_if_t< Dyn, ssize_t > dims) | |
Protected Attributes | |
| const unsigned char * | data_ |
| const ssize_t | dims_ |
| conditional_t< Dynamic, const ssize_t *, std::array< ssize_t,(size_t) Dims > > | shape_ |
| conditional_t< Dynamic, const ssize_t *, std::array< ssize_t,(size_t) Dims > > | strides_ |
Static Protected Attributes | |
| static constexpr bool | Dynamic = Dims < 0 |
Friends | |
| class | pybind11::array |
Proxy class providing unsafe, unchecked const access to array data. This is constructed through the unchecked<T, N>() method of array or the unchecked<N>() method of array_t<T>. Dims will be -1 for dimensions determined at runtime.
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
protected |