Search
Search Results
Search finished, found 17 page(s) matching the search query.
- numpy.generic.__array__
...NumPy reference Array objects Scalars numpy.generic.__array__...
- numpy.generic.__array__ (Python method, in numpy.generic.__array__)
- Array API
- How to extend NumPy
...d to an array include: 1) any nested sequence object, 2) any object exposing the array interface, 3) any object with an __array__ method (which should return an ndarray), and 4) any scalar object (becomes a zero-dimensional array). Sub-clas...
- Interoperability with NumPy
...rsor to Python’s buffer protocol, it defines a way to access the contents of a NumPy array from other C extensions. The __array__() method, which asks an arbitrary object to convert itself into an array. For both the buffer and the __array...
- NumPy 1.14.0 Release Notes
...times the largest of the input array dimensions. A FutureWarning is issued when rcond is not passed explicitly. a.flat.__array__() will return a writeable copy of a when a is non-contiguous. Previously it returned an UPDATEIFCOPY array wh...
- NumPy 1.19.0 Release Notes
...o NumPy arrays Objects with len(obj) == 0 which implement an “array-like” interface, meaning an object implementing obj.__array__(), obj.__array_interface__, obj.__array_struct__, or the python buffer interface and which are also sequences...
- NumPy 1.20.0 Release Notes
...). (gh-17233) ArrayLike objects which do not define __len__ and __getitem__ Objects which define one of the protocols __array__, __array_interface__, or __array_struct__ but are not sequences (usually defined by having a __len__ and __get...
- NumPy 1.21.0 Release Notes
- NumPy 1.23.0 Release Notes
...will be raised during array-like creation. When an object raised an exception during access of the special attributes __array__ or __array_interface__, this exception was usually ignored. This behaviour was deprecated in 1.21, and the ex...
- NumPy 2.0 migration guide
...an exception. Adapting to changes in the copy keyword The copy keyword behavior changes in asarray, array and ndarray.__array__ may require these changes: Code using np.array(..., copy=False) can in most cases be changed to np.asarray(.....
- NumPy 2.0.0 Release Notes
- numpy.generic.__array__
...NumPy reference Array objects Scalars numpy.generic.__array__...
- Standard array subclasses
- The
numpy.ma
module - Typing (
numpy.typing
) - Beyond the basics