Search
Searching
- numpy.matrix.mean
...ce Array objects Standard array subclasses numpy.matrix numpy.matrix.mean...
- numpy.matrix.mean (Python method, in numpy.matrix.mean)
- Array iterator API
...then set every value to the reduction unit before doing the iteration loop. In the case of a buffered reduction, this means you must also specify the flag NPY_ITER_DELAY_BUFALLOC, then reset the iterator after initializing the allocated o...
- How to contribute to the NumPy documentation
...are our best guide to what needs fixing. If you write a missing doc you join the front line of open source, but it’s a meaningful contribution just to let us know what’s missing. If you want to compose a doc, run your thoughts by the maili...
- Internal organization of NumPy arrays
...use of the copy method if one really wants to make a new and independent copy of the data buffer. New views into arrays mean the object reference counts for the data buffer increase. Simply doing away with the original array object will not...
- Linear algebra (
numpy.linalg
)...ray. This is indicated in the documentation via input parameter specifications such as a : (..., M, M) array_like. This means that if for instance given an input array a.shape == (N, M, M), it is interpreted as a “stack” of N matrices, each...
- NumPy 1.10.0 Release Notes
..., but a fully masked version of the item. Median warns and returns nan when invalid values are encountered Similar to mean, median and percentile now emits a Runtime warning and returns NaN in slices where a NaN is present. To compute the...
- NumPy 1.13.0 Release Notes
...GUfuncs on empty arrays and NpyIter axis removal It is now allowed to remove a zero-sized axis from NpyIter. Which may mean that code removing axes from NpyIter has to add an additional check when accessing the removed dimensions later on....
- NumPy 1.14.0 Release Notes
...type-like arguments. It might be expected that issubdtype(np.float32, 'float64') and issubdtype(np.float32, np.float64) mean the same thing - however, there was an undocumented special case that translated the former into issubdtype(np.floa...
- NumPy 1.15.0 Release Notes
...failed on python 3 when called with a string. Multidimensional indexing with anything but a tuple is deprecated. This means that the index list in ind = [slice(None), 0]; arr[ind] should be changed to a tuple, e.g., ind = [slice(None), 0]...
- NumPy 1.16.0 Release Notes
...ing point values, while before it was equal to the size of the type. For many users (for instance on x64/unix/gcc) this means that complex64 is now 4-byte aligned instead of 8-byte aligned. An important consequence is that aligned structure...
- NumPy 1.20.0 Release Notes
...or moving window access to the array. This allows for the simple implementation of certain algorithms, such as running means. (gh-17394) numpy.broadcast_shapes is a new user-facing function broadcast_shapes gets the resulting shape from...
- NumPy 1.7.0 Release Notes
..., max and min support the ability to choose a subset of the axes to reduce over. Previously, one could say axis=None to mean all the axes or axis=# to pick a single axis. Now, one can also say axis=(#,#) to pick a list of axes for reductio...
- NumPy 1.8.0 Release Notes
...ndexing for ufuncs with the .at method. New, partition function, partial sorting via selection for fast median. New, nanmean, nanvar, and nanstd functions skipping NaNs. New, full and full_like functions to create value initialized arrays....
- NumPy 1.9.0 Release Notes
...troduced in advanced indexing operations: Boolean indexing into scalar arrays will always return a new 1-d array. This means that array(1)[array(True)] gives array([1]) and not the original array. Advanced indexing into one dimensional arr...
- NumPy 2.0.0 Release Notes
...r rather than bytes. Pass the encoding explicitly to always get the new or old behavior. For genfromtxt the change also means that returned values will now be unicode strings rather than bytes. (gh-25158) f2py compatibility notes f2py wi...
- NumPy 2.1.0 Release Notes
...bols now hidden but customizable NumPy now defaults to hide the API symbols it adds to allow all NumPy API usage. This means that by default you cannot dynamically fetch the NumPy API from another library (this was never possible on window...
- NumPy 2.2.0 Release Notes
- NumPy for MATLAB users
...ly a handful of key differences between the two. Operators * and @, functions dot(), and multiply(): For array, ``*`` means element-wise multiplication, while ``@`` means matrix multiplication; they have associated functions multiply() an...
- NumPy quickstart
...count, ceil, clip, conj, corrcoef, cov, cross, cumprod, cumsum, diff, dot, floor, inner, invert, lexsort, max, maximum, mean, median, min, minimum, nonzero, outer, prod, re, round, sort, std, sum, trace, transpose, var, vdot, vectorize, whe...
- numpy.average
...None. ValueErrorWhen weights does not have dimensions and shape consistent with a along specified axis. See also mean ma.averageaverage for masked arrays – useful if your data contains “missing” values numpy.result_typeReturns the t...
- numpy.block
- numpy.char.chararray.view
- numpy.einsum
- numpy.linalg.cond
- numpy.linalg.norm
- numpy.linalg.svd
- numpy.ma.polyfit
- numpy.matlib.randn
- numpy.matrix.astype
- numpy.matrix.copy
- numpy.matrix.flatten
- numpy.matrix.mean
...ce Array objects Standard array subclasses numpy.matrix numpy.matrix.mean...
- numpy.matrix.partition
- numpy.matrix.ravel
- numpy.matrix.sort
- numpy.matrix.tobytes
- numpy.matrix.transpose
- numpy.matrix.view
- numpy.memmap.view
- numpy.ndarray.view
- numpy.polyfit
- numpy.polynomial.chebyshev.chebfit
- numpy.polynomial.hermite.hermfit
- numpy.polynomial.hermite_e.hermefit
- numpy.polynomial.laguerre.lagfit
- numpy.polynomial.legendre.legfit
- numpy.polynomial.polynomial.polyfit
- numpy.random.Generator.multivariate_normal
- numpy.random.multivariate_normal
- numpy.random.RandomState.multivariate_normal
- numpy.ravel
- numpy.recarray.view
- NumPy: the absolute basics for beginners
- Standard array subclasses
- The N-dimensional array (
ndarray
) - Array API
- Glossary