Search
Searching
- numpy.ndarray.take
...Array objects The N-dimensional array (ndarray) numpy.ndarray numpy.ndarray.take...
- numpy.ndarray.take (Python method, in numpy.ndarray.take)
- Array iterator API
...possibly NPY_ITER_GROWINNER. Create a copy of this iterator for each thread (minus one for the first iterator). Then, take the iteration index range [0, NpyIter_GetIterSize(iter)) and split it up into tasks, for example using a TBB parall...
- Beyond the basics
...all. As function calls can be time consuming, one way to speed up this kind of algorithm is to write the function so it takes a vector of data and then write the iteration so the function call is performed for an entire dimension of data at...
- Constants of the
numpy.ma
module...s transposed. MaskedArray.T View of the transposed array. Item selection and manipulation For array methods that take an axis keyword, it defaults to None. If axis is None, then the array is treated as a 1-D array. Any other value fo...
- ctypes foreign function interface (
numpy.ctypeslib
)...NumPy supplies the load_library function as a convenience. Changed in version 1.20.0: Allow libname and loader_path to take any path-like object. Parameters: libnamepath-likeName of the library, which can have ‘lib’ as a prefix, but wit...
- How to contribute to the NumPy documentation
...each out if you have questions or need someone to guide you through your first steps – we’re happy to help. Minutes are taken on hackmd.io and stored in the NumPy Archive repository. What’s needed The NumPy Documentation has the details c...
- How to extend NumPy
...is passed to a function or macro that is going to steal the reference ( e.g. PyTuple_SET_ITEM, and most functions that take PyArray_Descr objects). Typically you get a new reference to a variable when it is created or is the return value o...
- How to index
ndarrays
...rr[row_indices, column_indices] array([[ 1, 3], [ 4, 6], [10, 10]]) Index along a specific axis Use take. See also take_along_axis and put_along_axis. >>> a = np.arange(30).reshape(2, 3, 5) >>> a array([[[ 0, 1, 2, 3,...
- Indexing on
ndarrays
...eates a view instead of a copy as in the case of built-in Python sequences such as string, tuple and list. Care must be taken when extracting a small portion from a large array which becomes useless after the extraction, because the small p...
- Interoperability with NumPy
.... The __array_ufunc__ protocol A universal function (or ufunc for short) is a “vectorized” wrapper for a function that takes a fixed number of specific inputs and produces a fixed number of specific outputs. The output of the ufunc (and it...
- Memory management in NumPy
...related call a = np.zeros((nx,ny)) # non-NumPy related call b = [i**2 for i in range(nx*ny)] snapshot1 = tracemalloc.take_snapshot() # We filter the snapshot to only select NumPy related calls np_domain = np.lib.tracemalloc_domain dom_fi...
- NumPy 1.11.0 Release Notes
- NumPy 1.12.0 Release Notes
- NumPy 1.13.0 Release Notes
- NumPy 1.15.0 Release Notes
- NumPy 1.16.0 Release Notes
- NumPy 1.17.0 Release Notes
- NumPy 1.20.0 Release Notes
- NumPy 1.22.0 Release Notes
- NumPy 1.4.0 Release Notes
- NumPy 1.8.0 Release Notes
- NumPy 2.0.0 Release Notes
- NumPy C code explanations
- NumPy for MATLAB users
- NumPy quickstart
- numpy.apply_over_axes
- numpy.array2string
- numpy.compress
- numpy.einsum
- numpy.emath.logn
- numpy.extract
- numpy.gradient
- numpy.i: a SWIG interface file for NumPy
- numpy.ix_
- numpy.lib.format.read_array
- numpy.lib.scimath.logn
- numpy.lib.stride_tricks.sliding_window_view
- numpy.linalg.tensordot
- numpy.ma.apply_over_axes
- numpy.ma.diag
- numpy.ma.dot
- numpy.ma.ediff1d
- numpy.ma.masked_array.sort
- numpy.ma.masked_array.take
- numpy.ma.MaskedArray.sort
- numpy.ma.MaskedArray.take
- numpy.ma.MaskType.take
- numpy.ma.maximum_fill_value
- numpy.ma.minimum_fill_value
- numpy.matrix.ravel
- numpy.nanstd
- numpy.ndarray.getfield
- numpy.ndarray.take
- numpy.piecewise
- numpy.place
- numpy.polynomial.chebyshev.chebgrid2d
- numpy.polynomial.chebyshev.chebgrid3d
- numpy.polynomial.hermite.hermgrid2d
- numpy.polynomial.hermite.hermgrid3d