|
| | 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()) |
| |
| constexpr ssize_t | itemsize () const |
| |
| template<typename... Ix> |
| ssize_t | index_at (Ix... index) const |
| |
| template<typename... Ix> |
| const T * | data (Ix... index) const |
| |
| template<typename... Ix> |
| T * | mutable_data (Ix... index) |
| |
| template<typename... Ix> |
| const T & | at (Ix... index) const |
| |
| template<typename... Ix> |
| T & | mutable_at (Ix... index) |
| |
| template<ssize_t Dims = -1> |
| detail::unchecked_mutable_reference< T, Dims > | mutable_unchecked () & |
| | Returns a proxy object that provides access to the array's data without bounds or dimensionality checking. More...
|
| |
| template<ssize_t Dims = -1> |
| detail::unchecked_reference< T, Dims > | unchecked () const & |
| | Returns a proxy object that provides const access to the array's data without bounds or dimensionality checking. More...
|
| |
| | 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()) |
| |
| constexpr ssize_t | itemsize () const |
| |
| template<typename... Ix> |
| ssize_t | index_at (Ix... index) const |
| |
| template<typename... Ix> |
| const T * | data (Ix... index) const |
| |
| template<typename... Ix> |
| T * | mutable_data (Ix... index) |
| |
| template<typename... Ix> |
| const T & | at (Ix... index) const |
| |
| template<typename... Ix> |
| T & | mutable_at (Ix... index) |
| |
| template<ssize_t Dims = -1> |
| detail::unchecked_mutable_reference< T, Dims > | mutable_unchecked () & |
| | Returns a proxy object that provides access to the array's data without bounds or dimensionality checking. More...
|
| |
| template<ssize_t Dims = -1> |
| detail::unchecked_reference< T, Dims > | unchecked () const & |
| | Returns a proxy object that provides const access to the array's data without bounds or dimensionality checking. More...
|
| |
| | 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()) |
| |
| pybind11::dtype | dtype () const |
| | Array descriptor (dtype) More...
|
| |
| ssize_t | size () const |
| | Total number of elements. More...
|
| |
| ssize_t | itemsize () const |
| | Byte size of a single element. More...
|
| |
| ssize_t | nbytes () const |
| | Total number of bytes. More...
|
| |
| ssize_t | ndim () const |
| | Number of dimensions. More...
|
| |
| object | base () const |
| | Base object. More...
|
| |
| const ssize_t * | shape () const |
| | Dimensions of the array. More...
|
| |
| ssize_t | shape (ssize_t dim) const |
| | Dimension along a given axis. More...
|
| |
| const ssize_t * | strides () const |
| | Strides of the array. More...
|
| |
| ssize_t | strides (ssize_t dim) const |
| | Stride along a given axis. More...
|
| |
| int | flags () const |
| | Return the NumPy array flags. More...
|
| |
| bool | writeable () const |
| | If set, the array is writeable (otherwise the buffer is read-only) More...
|
| |
| bool | owndata () const |
| | If set, the array owns the data (will be freed when the array is deleted) More...
|
| |
| template<typename... Ix> |
| const void * | data (Ix... index) const |
| | Pointer to the contained data. More...
|
| |
| template<typename... Ix> |
| void * | mutable_data (Ix... index) |
| | Mutable pointer to the contained data. More...
|
| |
| template<typename... Ix> |
| ssize_t | offset_at (Ix... index) const |
| | Byte offset from beginning of the array to a given index (full or partial). More...
|
| |
| ssize_t | offset_at () const |
| |
| template<typename... Ix> |
| ssize_t | index_at (Ix... index) const |
| | Item count from beginning of the array to a given index (full or partial). More...
|
| |
| template<typename T , ssize_t Dims = -1> |
| detail::unchecked_mutable_reference< T, Dims > | mutable_unchecked () & |
| | Returns a proxy object that provides access to the array's data without bounds or dimensionality checking. More...
|
| |
| template<typename T , ssize_t Dims = -1> |
| detail::unchecked_reference< T, Dims > | unchecked () const & |
| | Returns a proxy object that provides const access to the array's data without bounds or dimensionality checking. More...
|
| |
| array | squeeze () |
| | Return a new view with all of the dimensions of length 1 removed. More...
|
| |
| void | resize (ShapeContainer new_shape, bool refcheck=true) |
| | Resize array to given shape If refcheck is true and more that one reference exist to this array then resize will succeed only if it makes a reshape, i.e. More...
|
| |
| array | reshape (ShapeContainer new_shape) |
| | Optional order parameter omitted, to be added as needed. More...
|
| |
| array | view (const std::string &dtype) |
| | Create a view of an array in a different data type. More...
|
| |
| | 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()) |
| |
| pybind11::dtype | dtype () const |
| | Array descriptor (dtype) More...
|
| |
| ssize_t | size () const |
| | Total number of elements. More...
|
| |
| ssize_t | itemsize () const |
| | Byte size of a single element. More...
|
| |
| ssize_t | nbytes () const |
| | Total number of bytes. More...
|
| |
| ssize_t | ndim () const |
| | Number of dimensions. More...
|
| |
| object | base () const |
| | Base object. More...
|
| |
| const ssize_t * | shape () const |
| | Dimensions of the array. More...
|
| |
| ssize_t | shape (ssize_t dim) const |
| | Dimension along a given axis. More...
|
| |
| const ssize_t * | strides () const |
| | Strides of the array. More...
|
| |
| ssize_t | strides (ssize_t dim) const |
| | Stride along a given axis. More...
|
| |
| int | flags () const |
| | Return the NumPy array flags. More...
|
| |
| bool | writeable () const |
| | If set, the array is writeable (otherwise the buffer is read-only) More...
|
| |
| bool | owndata () const |
| | If set, the array owns the data (will be freed when the array is deleted) More...
|
| |
| template<typename... Ix> |
| const void * | data (Ix... index) const |
| | Pointer to the contained data. More...
|
| |
| template<typename... Ix> |
| void * | mutable_data (Ix... index) |
| | Mutable pointer to the contained data. More...
|
| |
| template<typename... Ix> |
| ssize_t | offset_at (Ix... index) const |
| | Byte offset from beginning of the array to a given index (full or partial). More...
|
| |
| ssize_t | offset_at () const |
| |
| template<typename... Ix> |
| ssize_t | index_at (Ix... index) const |
| | Item count from beginning of the array to a given index (full or partial). More...
|
| |
| template<typename T , ssize_t Dims = -1> |
| detail::unchecked_mutable_reference< T, Dims > | mutable_unchecked () & |
| | Returns a proxy object that provides access to the array's data without bounds or dimensionality checking. More...
|
| |
| template<typename T , ssize_t Dims = -1> |
| detail::unchecked_reference< T, Dims > | unchecked () const & |
| | Returns a proxy object that provides const access to the array's data without bounds or dimensionality checking. More...
|
| |
| array | squeeze () |
| | Return a new view with all of the dimensions of length 1 removed. More...
|
| |
| void | resize (ShapeContainer new_shape, bool refcheck=true) |
| | Resize array to given shape If refcheck is true and more that one reference exist to this array then resize will succeed only if it makes a reshape, i.e. More...
|
| |
| array | reshape (ShapeContainer new_shape) |
| | Optional order parameter omitted, to be added as needed. More...
|
| |
| array | view (const std::string &dtype) |
| | Create a view of an array in a different data type. More...
|
| |
| buffer_info | request (bool writable=false) const |
| |
| buffer_info | request (bool writable=false) const |
| |
| | object ()=default |
| |
| | PYBIND11_DEPRECATED ("Use reinterpret_borrow<object>() or reinterpret_steal<object>()") object(handle h |
| |
| | 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 () |
| | Destructor; automatically calls handle::dec_ref() More...
|
| |
| handle | release () |
| | \rst Resets the internal pointer to nullptr without decreasing the object's reference count. More...
|
| |
| object & | operator= (const object &other) |
| |
| object & | operator= (object &&other) noexcept |
| |
| template<typename T > |
| T | cast () const & |
| |
| template<typename T > |
| T | cast () && |
| |
| | object (handle h, borrowed_t) |
| |
| | object (handle h, stolen_t) |
| |
| | object ()=default |
| |
| | PYBIND11_DEPRECATED ("Use reinterpret_borrow<object>() or reinterpret_steal<object>()") object(handle h |
| |
| | 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 () |
| | Destructor; automatically calls handle::dec_ref() More...
|
| |
| handle | release () |
| | \rst Resets the internal pointer to nullptr without decreasing the object's reference count. More...
|
| |
| object & | operator= (const object &other) |
| |
| object & | operator= (object &&other) noexcept |
| |
| template<typename T > |
| T | cast () const & |
| |
| template<typename T > |
| T | cast () && |
| |
| | object (handle h, borrowed_t) |
| |
| | object (handle h, stolen_t) |
| |
| template<typename T > |
| T | cast () const & |
| |
| template<typename T > |
| T | cast () && |
| |
| template<> |
| void | cast () const & |
| |
| template<> |
| void | cast () && |
| |
Public Member Functions inherited from handle |
| | handle ()=default |
| | The default constructor creates a handle with a nullptr-valued pointer. More...
|
| |
| | handle (PyObject *ptr) |
| | Creates a handle from the given raw Python object pointer. More...
|
| |
| PyObject * | ptr () const |
| | Return the underlying PyObject * pointer. More...
|
| |
| PyObject *& | ptr () |
| |
| const handle & | inc_ref () const & |
| | \rst Manually increase the reference count of the Python object. More...
|
| |
| const handle & | dec_ref () const & |
| | \rst Manually decrease the reference count of the Python object. More...
|
| |
| template<typename T > |
| T | cast () const |
| | \rst Attempt to cast the Python object into the given C++ type. More...
|
| |
| | operator bool () const |
| | Return true when the handle wraps a valid Python object. More...
|
| |
| bool | operator== (const handle &h) const |
| | \rst Deprecated: Check that the underlying pointers are the same. More...
|
| |
| bool | operator!= (const handle &h) const |
| |
| bool | check () 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) |
| | Enable implicit conversion from PyObject * and nullptr. More...
|
| |
| 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...
|
| |
| PyObject * | ptr () const |
| | Return the underlying PyObject * pointer. More...
|
| |
| PyObject *& | ptr () |
| |
| const handle & | inc_ref () const & |
| | \rst Manually increase the reference count of the Python object. More...
|
| |
| const handle & | dec_ref () const & |
| | \rst Manually decrease the reference count of the Python object. More...
|
| |
| template<typename T > |
| T | cast () const |
| | \rst Attempt to cast the Python object into the given C++ type. More...
|
| |
| | operator bool () const |
| | Return true when the handle wraps a valid Python object. More...
|
| |
| bool | operator== (const handle &h) const |
| | \rst Deprecated: Check that the underlying pointers are the same. More...
|
| |
| bool | operator!= (const handle &h) const |
| |
| bool | check () const |
| |
| template<> |
| void | cast () const |
| |