Search
Searching
- numpy.matrix.shape
...numpy.matrix.shape...
- numpy.matrix.shape (Python attribute, in numpy.matrix.shape)
- Array API
- Array creation
...functions The ndarray creation functions e.g. numpy.ones, numpy.zeros, and random define arrays based upon the desired shape. The ndarray creation functions can create arrays with any dimension by specifying how many dimensions and lengt...
- Array creation routines
...Array creation routines See also Array creation From shape or value empty(shape[, dtype, order, device, like]) Return a new array of given shape and type, without initiali...
- Array iterator API
...IterSize is larger than zero before entering the iteration loop. Currently only the operands are checked, not a forced shape. NPY_ITER_REDUCE_OK Permits writeable operands with a dimension with zero stride and size greater than one. N...
- Constants of the
numpy.ma
module...ral constants. numpy.ma.masked The masked constant is a special case of MaskedArray, with a float datatype and a null shape. It is used to test whether a specific entry of a masked array is masked, or to mask one or several entries of a m...
- Internal organization of NumPy arrays
...of the array buffer. Changing the byteorder of the array is a simple change involving no rearrangement of the data. The shape of the array can be changed very easily without changing anything in the data buffer or any data copying at all. A...
- Linear algebra (
numpy.linalg
)...put 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 of size M-by-M. Similar specification applies to...
- NumPy 1.10.0 Release Notes
...New function np.broadcast_to for invoking array broadcasting np.broadcast_to manually broadcasts an array to a given shape according to numpy’s broadcasting rules. The functionality is similar to broadcast_arrays, which in fact has been...
- NumPy 1.11.0 Release Notes
...e ellipsis will raise IndexError, e.g., a[..., ...]. Non-integers used as index values will raise TypeError, e.g., in reshape, take, and specifying reduce axis. In a future release the following changes will be made. The rand function exp...
- NumPy 1.13.0 Release Notes
...Calling expand_dims when the axis keyword does not satisfy -a.ndim - 1 <= axis <= a.ndim, where a is the array being reshaped, is deprecated. Future Changes Assignment between structured arrays with different field names will change in...
- NumPy 1.16.0 Release Notes
...t-in ufuncs should use PyUFunc_ReplaceLoopBySignature. The numpy.unravel_index keyword argument dims is deprecated, use shape instead. The numpy.histogram normed argument is deprecated. It was deprecated previously, but no warning was issu...
- NumPy 1.20.0 Release Notes
...y. 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 broadcasting the given shape tuples...
- NumPy 1.25.0 Release Notes
...= operators on arrays now always: raise errors that occur during comparisons such as when the arrays have incompatible shapes (np.array([1, 2]) == np.array([1, 2, 3])). return an array of all True or all False when values are fundamentally...
- NumPy 1.8.0 Release Notes
...ARATE_COMPILATION=0. For the AdvancedNew iterator the oa_ndim flag should now be -1 to indicate that no op_axes and itershape are passed in. The oa_ndim == 0 case, now indicates a 0-D iteration and op_axes being NULL and the old usage is de...
- NumPy 1.9.0 Release Notes
...out argument to np.argmin and np.argmax and their equivalent C-API functions is now checked to match the desired output shape exactly. If the check fails a ValueError instead of TypeError is raised. Einsum Remove unnecessary broadcasting...
- NumPy 2.0.0 Release Notes
...removed. For a replacement, np.sort(a, axis=0) should be used instead. (gh-24494) np.dtype(("f8", 1) will now return a shape 1 subarray dtype rather than a non-subarray one. (gh-25761) Assigning to the .data attribute of an ndarray is dis...
- NumPy 2.1.0 Release Notes
...occur in code that releases the GIL; disabling the GIL only makes it easier to hit threading bugs. (gh-26157) numpy.reshape and numpy.ndarray.reshape now support shape and copy arguments. (gh-26292) NumPy now supports DLPack v1, support...
- NumPy 2.2.0 Release Notes
...ld return a scalar in this scenario, which is not correct, so this is a behavior change and an array of the appropriate shape will now be returned. (gh-27661) New Features New functions for matrix-vector and vector-matrix products Two...
- NumPy for MATLAB users
...m(a) or a.ndim number of dimensions of array a numel(a) np.size(a) or a.size number of elements of array a size(a) np.shape(a) or a.shape “size” of array a size(a,n) a.shape[n-1] get the number of elements of the n-th dimension of array...
- NumPy quickstart
...how to apply common functions to n-dimensional arrays (without using for-loops), or if you want to understand axis and shape properties for n-dimensional arrays, this article might be of help. Learning Objectives After reading, you should...
- numpy.array
...optionalSpecifies the minimum number of dimensions that the resulting array should have. Ones will be prepended to the shape as needed to meet this requirement. likearray_like, optionalReference object to allow the creation of arrays whic...
- numpy.average
...a. Each value in a contributes to the average according to its associated weight. The array of weights must be the same shape as a if no axis is specified, otherwise the weights must have dimensions and shape consistent with a along the spe...
- numpy.block
- numpy.char.chararray
...numpy.char.chararray class numpy.char.chararray(shape, itemsize=1, unicode=False, buffer=None, offset=0, strides=None, order=None)[source] Provides a convenient view on...
- numpy.char.chararray.view
- numpy.corrcoef
- numpy.diagonal
- numpy.einsum
- numpy.inner
- numpy.linalg.diagonal
- numpy.linalg.inv
- numpy.linalg.LinAlgError
- numpy.linalg.lstsq
- numpy.linalg.matmul
- numpy.linalg.matrix_norm
- numpy.linalg.matrix_power
- numpy.linalg.matrix_transpose
- numpy.linalg.multi_dot
- numpy.linalg.qr
- numpy.linalg.slogdet
- numpy.linalg.solve
- numpy.linalg.svd
- numpy.linalg.svdvals
- numpy.linalg.trace