#include </builds/ipbus/ipbus-software/uhal/python/pybind11-python2/include/pybind11/numpy.h>
Public Member Functions | |
template<typename... Ix> | |
T & | operator() (Ix... index) |
Mutable, unchecked access to data at the given indices. More... | |
template<ssize_t D = Dims, typename = enable_if_t<D == 1 || Dynamic>> | |
T & | operator[] (ssize_t index) |
Mutable, unchecked access data at the given index; this operator only participates if the reference is to a 1-dimensional array (or has runtime dimensions). More... | |
template<typename... Ix> | |
T * | mutable_data (Ix... ix) |
Mutable pointer access to the data at the given indices. More... | |
template<typename... Ix> | |
T & | operator() (Ix... index) |
Mutable, unchecked access to data at the given indices. More... | |
template<ssize_t D = Dims, typename = enable_if_t<D == 1 || Dynamic>> | |
T & | operator[] (ssize_t index) |
Mutable, unchecked access data at the given index; this operator only participates if the reference is to a 1-dimensional array (or has runtime dimensions). More... | |
template<typename... Ix> | |
T * | mutable_data (Ix... ix) |
Mutable pointer access to the data at the given indices. More... | |
![]() | |
template<typename... Ix> | |
const T & | operator() (Ix... index) const |
Unchecked const reference access to data at the given indices. More... | |
template<ssize_t D = Dims, typename = enable_if_t<D == 1 || Dynamic>> | |
const T & | operator[] (ssize_t index) const |
Unchecked const reference access to data; this operator only participates if the reference is to a 1-dimensional array. More... | |
template<typename... Ix> | |
const T * | data (Ix... ix) const |
Pointer access to the data at the given indices. More... | |
ssize_t | shape (ssize_t dim) const |
Returns the shape (i.e. size) of dimension dim More... | |
ssize_t | ndim () const |
Returns the number of dimensions of the array. More... | |
template<bool Dyn = Dynamic> | |
enable_if_t<!Dyn, ssize_t > | size () const |
Returns the total number of elements in the referenced array, i.e. More... | |
template<bool Dyn = Dynamic> | |
enable_if_t< Dyn, ssize_t > | size () const |
ssize_t | nbytes () const |
Returns the total number of bytes used by the referenced data. More... | |
template<typename... Ix> | |
const T & | operator() (Ix... index) const |
Unchecked const reference access to data at the given indices. More... | |
template<ssize_t D = Dims, typename = enable_if_t<D == 1 || Dynamic>> | |
const T & | operator[] (ssize_t index) const |
Unchecked const reference access to data; this operator only participates if the reference is to a 1-dimensional array. More... | |
template<typename... Ix> | |
const T * | data (Ix... ix) const |
Pointer access to the data at the given indices. More... | |
ssize_t | shape (ssize_t dim) const |
Returns the shape (i.e. size) of dimension dim More... | |
ssize_t | ndim () const |
Returns the number of dimensions of the array. More... | |
template<bool Dyn = Dynamic> | |
enable_if_t<!Dyn, ssize_t > | size () const |
Returns the total number of elements in the referenced array, i.e. More... | |
template<bool Dyn = Dynamic> | |
enable_if_t< Dyn, ssize_t > | size () const |
ssize_t | nbytes () const |
Returns the total number of bytes used by the referenced data. More... | |
Private Types | |
using | ConstBase = unchecked_reference< T, Dims > |
using | ConstBase = unchecked_reference< T, Dims > |
Static Private Attributes | |
static constexpr bool | Dynamic |
static constexpr bool | Dynamic |
Friends | |
class | pybind11::array |
Additional Inherited Members | |
![]() | |
static constexpr ssize_t | itemsize () |
Returns the item size, i.e. sizeof(T) More... | |
static constexpr ssize_t | itemsize () |
Returns the item size, i.e. sizeof(T) More... | |
![]() | |
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) | |
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) | |
![]() | |
const unsigned char * | data_ |
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_ |
const ssize_t | dims_ |
![]() | |
static constexpr bool | Dynamic = Dims < 0 |
|
private |
|
private |
|
inline |
Mutable pointer access to the data at the given indices.
Definition at line 526 of file numpy.h.
References unchecked_mutable_reference< T, Dims >::operator()().
|
inline |
Mutable pointer access to the data at the given indices.
Definition at line 524 of file numpy.h.
References unchecked_mutable_reference< T, Dims >::operator()().
|
inline |
Mutable, unchecked access to data at the given indices.
Definition at line 509 of file numpy.h.
References unchecked_mutable_reference< T, Dims >::Dynamic, and unchecked_reference< T, Dims >::operator()().
Referenced by unchecked_mutable_reference< T, Dims >::mutable_data(), and unchecked_mutable_reference< T, Dims >::operator[]().
|
inline |
Mutable, unchecked access to data at the given indices.
Definition at line 507 of file numpy.h.
References unchecked_mutable_reference< T, Dims >::Dynamic, and unchecked_reference< T, Dims >::operator()().
|
inline |
Mutable, unchecked access data at the given index; this operator only participates if the reference is to a 1-dimensional array (or has runtime dimensions).
When present, this is exactly equivalent to obj(index)
.
Definition at line 520 of file numpy.h.
References unchecked_mutable_reference< T, Dims >::operator()().
|
inline |
Mutable, unchecked access data at the given index; this operator only participates if the reference is to a 1-dimensional array (or has runtime dimensions).
When present, this is exactly equivalent to obj(index)
.
Definition at line 518 of file numpy.h.
References unchecked_mutable_reference< T, Dims >::operator()().
|
staticconstexprprivate |
Definition at line 411 of file numpy.h.
Referenced by unchecked_mutable_reference< T, Dims >::operator()().
|
staticconstexprprivate |