|
| array_t () |
|
| array_t (handle h, borrowed_t) |
|
| array_t (handle h, stolen_t) |
|
| array_t (handle h, bool is_borrowed) |
|
| array_t (const object &o) |
|
| array_t (const buffer_info &info, handle base=handle()) |
|
| array_t (ShapeContainer shape, StridesContainer strides, const T *ptr=nullptr, handle base=handle()) |
|
| array_t (ShapeContainer shape, const T *ptr=nullptr, handle base=handle()) |
|
| array_t (ssize_t count, const T *ptr=nullptr, handle base=handle()) |
|
template<typename... Ix> |
const T & | at (Ix... index) const |
|
template<typename... Ix> |
const T * | data (Ix... index) const |
|
template<typename... Ix> |
ssize_t | index_at (Ix... index) const |
|
constexpr ssize_t | itemsize () const |
|
template<typename... Ix> |
T & | mutable_at (Ix... index) |
|
template<typename... Ix> |
T * | mutable_data (Ix... index) |
|
template<ssize_t Dims = -1> |
detail::unchecked_mutable_reference< T, Dims > | mutable_unchecked () & |
|
template<ssize_t Dims = -1> |
detail::unchecked_reference< T, Dims > | unchecked () const & |
|
| array () |
|
| array (const pybind11::dtype &dt, ShapeContainer shape, StridesContainer strides, const void *ptr=nullptr, handle base=handle()) |
|
| array (const pybind11::dtype &dt, ShapeContainer shape, const void *ptr=nullptr, handle base=handle()) |
|
template<typename T , typename = detail::enable_if_t<std::is_integral<T>::value && !std::is_same<bool, T>::value>> |
| array (const pybind11::dtype &dt, T count, const void *ptr=nullptr, handle base=handle()) |
|
template<typename T > |
| array (ShapeContainer shape, StridesContainer strides, const T *ptr, handle base=handle()) |
|
template<typename T > |
| array (ShapeContainer shape, const T *ptr, handle base=handle()) |
|
template<typename T > |
| array (ssize_t count, const T *ptr, handle base=handle()) |
|
| array (const buffer_info &info, handle base=handle()) |
|
object | base () const |
| Base object. More...
|
|
template<typename... Ix> |
const void * | data (Ix... index) const |
|
pybind11::dtype | dtype () const |
| Array descriptor (dtype) More...
|
|
int | flags () const |
| Return the NumPy array flags. More...
|
|
template<typename... Ix> |
ssize_t | index_at (Ix... index) const |
|
ssize_t | itemsize () const |
| Byte size of a single element. More...
|
|
template<typename... Ix> |
void * | mutable_data (Ix... index) |
|
template<typename T , ssize_t Dims = -1> |
detail::unchecked_mutable_reference< T, Dims > | mutable_unchecked () & |
|
ssize_t | nbytes () const |
| Total number of bytes. More...
|
|
ssize_t | ndim () const |
| Number of dimensions. More...
|
|
template<typename... Ix> |
ssize_t | offset_at (Ix... index) const |
|
ssize_t | offset_at () const |
|
bool | owndata () const |
| If set, the array owns the data (will be freed when the array is deleted) More...
|
|
array | reshape (ShapeContainer new_shape) |
| Optional order parameter omitted, to be added as needed. More...
|
|
void | resize (ShapeContainer new_shape, bool refcheck=true) |
|
const ssize_t * | shape () const |
| Dimensions of the array. More...
|
|
ssize_t | shape (ssize_t dim) const |
| Dimension along a given axis. More...
|
|
ssize_t | size () const |
| Total number of elements. More...
|
|
array | squeeze () |
| Return a new view with all of the dimensions of length 1 removed. More...
|
|
const ssize_t * | strides () const |
| Strides of the array. More...
|
|
ssize_t | strides (ssize_t dim) const |
| Stride along a given axis. More...
|
|
template<typename T , ssize_t Dims = -1> |
detail::unchecked_reference< T, Dims > | unchecked () const & |
|
array | view (const std::string &dtype) |
|
bool | writeable () const |
| If set, the array is writeable (otherwise the buffer is read-only) More...
|
|
buffer_info | request (bool writable=false) const |
|
template<typename T > |
T | cast () const & |
|
template<typename T > |
T | cast () && |
|
template<typename T > |
T | cast () const & |
|
template<typename T > |
T | cast () && |
|
template<> |
void | cast () const & |
|
template<> |
void | cast () && |
|
| object ()=default |
|
| object (const object &o) |
| Copy constructor; always increases the reference count. More...
|
|
| object (object &&other) noexcept |
| Move constructor; steals the object from other and preserves its reference count. More...
|
|
| object (handle h, borrowed_t) |
|
| object (handle h, stolen_t) |
|
object & | operator= (const object &other) |
|
object & | operator= (object &&other) noexcept |
|
| PYBIND11_DEPRECATED ("Use reinterpret_borrow<object>() or reinterpret_steal<object>()") object(handle h |
|
handle | release () |
|
| ~object () |
| Destructor; automatically calls handle::dec_ref() More...
|
|
Public Member Functions inherited from handle |
template<typename T > |
T | cast () const |
|
template<> |
void | cast () const |
|
bool | check () const |
|
const handle & | dec_ref () const & |
|
| handle ()=default |
| The default constructor creates a handle with a nullptr -valued pointer. More...
|
|
template<typename T , detail::enable_if_t< detail::is_pyobj_ptr_or_nullptr_t< T >::value, int > = 0> |
| handle (T ptr) |
|
template<typename T , detail::enable_if_t< detail::all_of< detail::none_of< std::is_base_of< handle, T >, detail::is_pyobj_ptr_or_nullptr_t< T >>, std::is_convertible< T, PyObject *>>::value, int > = 0> |
| handle (T &obj) |
| Enable implicit conversion through T::operator PyObject *() . More...
|
|
const handle & | inc_ref () const & |
|
| operator bool () const |
| Return true when the handle wraps a valid Python object. More...
|
|
bool | operator!= (const handle &h) const |
|
bool | operator== (const handle &h) const |
|
PyObject * | ptr () const |
| Return the underlying PyObject * pointer. More...
|
|
PyObject *& | ptr () |
|
template<typename T, int ExtraFlags = array::forcecast>
class array_t< T, ExtraFlags >
Definition at line 1016 of file numpy.h.