Search
Search Results
Search finished, found 24 page(s) matching the search query.
- Array API
...void PyArray_ITER_RESET(PyObject *iterator) Reset an iterator to the beginning of the array. void PyArray_ITER_NEXT(PyObject *iterator) Increment the index and the dataptr members of the iterator to point to the next element of the...
- Array iterator API
...ean function */ PyArray_NonzeroFunc* nonzero = PyArray_DESCR(self)->f->nonzero; NpyIter* iter; NpyIter_IterNextFunc *iternext; char** dataptr; npy_intp nonzero_count; npy_intp* strideptr,* innersizeptr; /* Hand...
- Beyond the basics
...>ao which is a pointer to the underlying ndarray object. After processing data at the current element of the array, the next element of the array can be obtained using the macro PyArray_ITER_NEXT ( iter ). The iteration always proceeds in a...
- NumPy 1.10.0 Release Notes
...ormalized to the given period and one end point is added to each extremity of xp in order to close the previous and the next period cycles, resulting in the correct interpolation behavior. np.pad supports more input types for pad_width an...
- NumPy 1.15.0 Release Notes
...perform accumulation they no longer make temporary copies because of the overlap between input an output, that is, the next element accumulated is added before the accumulated result is stored in its place, hence the overlap is safe. Avoid...
- NumPy 1.20.0 Release Notes
...he ndincr method of ndindex is deprecated The documentation has warned against using this function since NumPy 1.8. Use next(it) instead of it.ndincr(). (gh-17233) ArrayLike objects which do not define __len__ and __getitem__ Objects whic...
- NumPy 1.25.0 Release Notes
...needed because distutils has been dropped by Python 3.12 and we will be switching to using meson for future builds. The next mainline release will be NumPy 2.0.0. We plan that the 2.0 series will still support downstream projects built agai...
- NumPy 1.7.0 Release Notes
...jects in the future as preparation for NumPy 2.0. The macros in old_defines.h are deprecated and will be removed in the next major release (>= 2.0). The sed script tools/replace_old_macros.sed can be used to replace these macros with the ne...
- NumPy 1.8.1 Release Notes
...an error issued not at construction time but when removing the multi index, setting the iterator range, or getting the next function. This has no effect on currently working code, but highlights the necessity of checking for an error retur...
- NumPy 1.9.0 Release Notes
...an error issued not at construction time but when removing the multi index, setting the iterator range, or getting the next function. This has no effect on currently working code, but highlights the necessity of checking for an error retur...
- NumPy C code explanations
...each dimension in an \(N\)-dimensional array, an integer (stride) dictates how many bytes must be skipped to get to the next element in that dimension. Unless you have a single-segment array, this stride information must be consulted when t...
- NumPy quickstart
...to-last is printed from top to bottom, the rest are also printed from top to bottom, with each slice separated from the next by an empty line. One-dimensional arrays are then printed as rows, bidimensionals as matrices and tridimensionals...
- numpy.broadcast.index
...numpy as np >>> x = np.array([[1], [2], [3]]) >>> y = np.array([4, 5, 6]) >>> b = np.broadcast(x, y) >>> b.index 0 >>> next(b), next(b), next(b) ((1, 4), (1, 5), (1, 6)) >>> b.index 3...
- numpy.broadcast.iters
...np >>> x = np.array([1, 2, 3]) >>> y = np.array([[4], [5], [6]]) >>> b = np.broadcast(x, y) >>> row, col = b.iters >>> next(row), next(col) (1, 4)...
- numpy.broadcast.reset
- numpy.nextafter
- NumPy: the absolute basics for beginners
...nal array as it is stored in memory, the first index is the most rapidly varying index. As the first index moves to the next row as it changes, the matrix is stored one column at a time. This is why Fortran is thought of as a Column-major l...
- Python types and C-structures
- Standard array subclasses
- Writing your own ufunc
- Glossary
- Indexing on
ndarrays
- The array interface protocol
- ufunc API