Search
Searching.
- Array objects
...NumPy reference Array objects...
- How to extend NumPy > Dealing with array objects
...differential equation. Religion is a boundary condition. — Alan Turing Writing an extension module While the ndarray object is designed to allow rapid computation in Python, it is also designed to be general-purpose and satisfy a wide- v...
- Array API
...ons, for Nature cannot be fooled. — Richard P. Feynman Array structure and data access These macros access the PyArrayObject structure members and are defined in ndarraytypes.h. The input argument, arr, can be any PyObject* that is direct...
- Array creation
...list of lists will create a 2D array, further nested lists will create higher-dimensional arrays. In general, any array object is called an ndarray in NumPy. >>> import numpy as np >>> a1D = np.array([1, 2, 3, 4]) >>> a2D = np.array([[1, 2...
- Array iterator API
...or PyArray_CountNonzero, which counts the number of non-zero elements in an array. npy_intp PyArray_CountNonzero(PyArrayObject* self) { /* Nonzero boolean function */ PyArray_NonzeroFunc* nonzero = PyArray_DESCR(self)->f->nonzero;...
- Array objects
...NumPy reference Array objects...
- Beyond the basics
...common algorithmic requirement is to be able to walk over all elements in a multidimensional array. The array iterator object makes this easy to do in a generic way that works for arrays of any dimension. Naturally, if you know the number...
- Broadcasting
...(2d array): 4 x 2 Figure 5 The basic operation of vector quantization calculates the distance between an object to be classified, the dark square, and multiple known codes, the gray circles. In this simple case, the codes rep...
- Copies and views
...e # advanced indexing creates a copy True Note that the base attribute should not be used to determine if an ndarray object is new; only if it is a view or a copy of another ndarray....
- Data type objects (
dtype
)...NumPy reference Array objects Data type objects (dtype)...
- Data types
...Data types See also Data type objects Array types and conversions between types NumPy supports a much greater variety of numerical types than Python...
- How to extend NumPy
...differential equation. Religion is a boundary condition. — Alan Turing Writing an extension module While the ndarray object is designed to allow rapid computation in Python, it is also designed to be general-purpose and satisfy a wide- v...
- Indexing on
ndarrays
...iding Basic slicing extends Python’s basic concept of slicing to N dimensions. Basic slicing occurs when obj is a slice object (constructed by start:stop:step notation inside of brackets), an integer, or a tuple of slice objects and integer...
- Internal organization of NumPy arrays
...order of the data (which may not be the native byte order). Whether the buffer is read-only. Information (via the dtype object) about the interpretation of the basic data element. The basic data element may be as simple as an int or a float...
- Interoperability with NumPy
...Interoperability with NumPy NumPy’s ndarray objects provide both a high-level API for operations on array-structured data and a concrete implementation of the API b...
- Iterating over arrays
...NumPy reference Array objects Iterating over arrays...
- Masked array operations
- NumPy 1.10.0 Release Notes
- NumPy 1.11.0 Release Notes
...prior versions of NumPy the experimental datetime64 type always stored times in UTC. By default, creating a datetime64 object from a string or printing it would convert from or to local time: # old behavior >>> np.datetime64('2000-01-01T00...
- NumPy 1.12.0 Release Notes
...order is preserved, instead of being reordered to match that of the directories. Deprecations Assignment of ndarray object’s data attribute Assigning the ‘data’ attribute is an inherently unsafe operation as pointed out in gh-7083. Such...
- NumPy 1.13.0 Release Notes
...ad of a mixture of IndexError and ValueError. For backwards compatibility, AxisError subclasses both of these. Tuple object dtypes Support has been removed for certain obscure dtypes that were unintentionally allowed, of the form (old_dt...
- NumPy 1.14.0 Release Notes
...ray_SetWritebackIfCopyBase, new C-API functions useful in achieving PyPy compatibility. Deprecations Using np.bool_ objects in place of integers is deprecated. Previously operator.index(np.bool_) was legal and allowed constructs such a...
- NumPy 1.15.0 Release Notes
...y. A deprecation warning will be emitted if those calls are not used when needed. Users of nditer should use the nditer object as a context manager anytime one of the iterator operands is writeable, so that numpy can manage writeback semant...
- NumPy 1.16.0 Release Notes
- NumPy 1.16.4 Release Notes
- NumPy 1.16.6 Release Notes
- NumPy 1.17.0 Release Notes
- NumPy 1.18.0 Release Notes
- NumPy 1.19.0 Release Notes
- NumPy 1.20.0 Release Notes
- NumPy 1.21.0 Release Notes
- NumPy 1.22.0 Release Notes
- NumPy 1.23.0 Release Notes
- NumPy 1.24 Release Notes
- NumPy 1.25.0 Release Notes
- NumPy 1.26.0 Release Notes
- NumPy 1.3.0 Release Notes
- NumPy 1.6.0 Release Notes
- NumPy 1.7.0 Release Notes
- NumPy 1.8.0 Release Notes
- NumPy 1.9.0 Release Notes
- NumPy 2.0.0 Release Notes
- NumPy C code explanations
- NumPy for MATLAB users
- NumPy quickstart
- numpy.array
- numpy.char.array
- numpy.i: a SWIG interface file for NumPy
- numpy.rec.array
- NumPy: the absolute basics for beginners
- Python types and C-structures
- Reading and writing files
- Routines and objects by topic
- Standard array subclasses
- Structured arrays
- Subclassing ndarray
- The
numpy.ma
module - The array interface protocol
- The N-dimensional array (
ndarray
) - Typing (
numpy.typing
) - Using F2PY bindings in Python
- Working with Arrays of Strings And Bytes
- Writing custom array containers
- Writing your own ufunc
- Byte-swapping
- ctypes foreign function interface (
numpy.ctypeslib
) - Data type API
- Data type promotion in NumPy