Search
Searching.
- numpy.shape
...NumPy reference Routines and objects by topic Array manipulation routines numpy.shape...
- numpy.broadcast.shape (Python attribute, in numpy.broadcast.shape)
- numpy.char.chararray.shape (Python attribute, in numpy.char.chararray.shape)
- numpy.dtype.shape (Python attribute, in numpy.dtype.shape)
- numpy.generic.shape (Python attribute, in numpy.generic.shape)
- numpy.lib.Arrayterator.shape (Python property, in numpy.lib.Arrayterator.shape)
- numpy.ma.masked_array.shape (Python property, in numpy.ma.masked_array.shape)
- numpy.ma.MaskedArray.shape (Python property, in numpy.ma.MaskedArray.shape)
- numpy.ma.MaskType.shape (Python attribute, in numpy.ma.MaskType.shape)
- numpy.ma.shape (Python function, in numpy.ma.shape)
- numpy.matrix.shape (Python attribute, in numpy.matrix.shape)
- numpy.memmap.shape (Python attribute, in numpy.memmap.shape)
- numpy.ndarray.shape (Python attribute, in numpy.ndarray.shape)
- numpy.nditer.shape (Python attribute, in numpy.nditer.shape)
- numpy.recarray.shape (Python attribute, in numpy.recarray.shape)
- numpy.record.shape (Python attribute, in numpy.record.shape)
- numpy.shape (Python function, in numpy.shape)
- Array API
...id memory and/or alignment problems. npy_intp *PyArray_DIMS(PyArrayObject *arr) Returns a pointer to the dimensions/shape of the array. The number of elements matches the number of dimensions of the array. Can return NULL for 0-dimensio...
- 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...
- ctypes foreign function interface (
numpy.ctypeslib
)...ctypes foreign function interface (numpy.ctypeslib) numpy.ctypeslib.as_array(obj, shape=None)[source] Create a numpy array from a ctypes array or POINTER. The numpy array shares the memory with the ctyp...
- How to extend NumPy
...ly a few API calls will typically be used. For example, if you need to just extract a pointer to memory along with some shape information to pass to another calculation routine, then you will use very different calls than if you are trying...
- 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...
- Interoperability with NumPy
...elies on the existence of the following attributes or methods: __array_interface__: a Python dictionary containing the shape, the element type, and optionally, the data buffer address and the strides of an array-like object; __array__(): a...
- Legacy random generation
...e is an integer, then a 1-D array filled with generated values is returned. If size is a tuple, then an array with that shape is filled and returned. Compatibility Guarantee A fixed bit generator using a fixed seed and a fixed series of cal...
- 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...
- Memory management in NumPy
...numpy.ndarray is a python class. It requires additional memory allocations to hold numpy.ndarray.strides, numpy.ndarray.shape and numpy.ndarray.data attributes. These attributes are specially allocated after creating the python object in __...
- Miscellaneous
...ing issues good numpy support: arrays have all these in their ctypes attribute: a.ctypes.data a.ctypes.data_as a.ctypes.shape a.ctypes.shape_as a.ctypes.strides a.ctypes.strides_as Minuses: can’t use for writing code to be turned into...
- 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.10.2 Release Notes
...precates assignment of a new descriptor to the dtype attribute of a non-C-contiguous array if it result in changing the shape. This effectively bars viewing a multidimensional Fortran array using a dtype that changes the element size along...
- 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.17.0 Release Notes
...t qualifier should be used with such arrays to avoid the warning (e.g. cdef const double[::1] view). Future Changes Shape-1 fields in dtypes won’t be collapsed to scalars in a future version Currently, a field specified as [(name, dtype...
- NumPy 1.18.0 Release Notes
...p all fields, previously the array would be completely discarded and None returned. Now it returns an array of the same shape as the input, but with no fields. The old behavior can be retained with: dropped_arr = drop_fields(arr, ['a', 'b']...
- NumPy 1.19.0 Release Notes
...truct__, or the python buffer interface and which are also sequences (i.e. Pandas objects) will now always retain there shape correctly when converted to an array. If such an object has a shape of (0, 1) previously, it could be converted in...
- 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.21.0 Release Notes
...and the features of PCG64. See Upgrading PCG64 with PCG64DXSM for more details. (gh-18906) Expired deprecations The shape argument unravel_index cannot be passed as dims keyword argument anymore. (Was deprecated in NumPy 1.16.) (gh-1790...
- NumPy 1.22.1 Release Notes
...Refer to NumPy, not pandas, in main page #20815: DOC: Update Copyright to 2022 [License] #20819: BUG: Return correctly shaped inverse indices in array_api set…...
- NumPy 1.23.0 Release Notes
...utput class type >>> class myarr(np.ndarray): >>> __array_priority__ = -1 >>> a = np.ones([2, 2]) >>> ma = myarray(a.shape, a.dtype, a.data) >>> type(np.kron(a, ma)) == np.ndarray False # Before it was True >>> type(np.kron(a, ma)) == my...
- NumPy 1.24 Release Notes
...Py iterator available through np.nditer in Python and as NpyIter in C now supports allocating all arrays. The iterator shape defaults to () in this case. The operands dtype must be provided, since a “common dtype” cannot be inferred from...
- 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.3.0 Release Notes
...the inner product along the last axis of each input, but keeps the remaining indices intact. For example, where a is of shape (3,5,N) and b is of shape (5,N), this will return an output of shape (3,5). The underlying elementary function is...
- NumPy 1.6.0 Release Notes
...intuitive way to get the correct mapping of values without playing unnatural tricks with the domain. Fortran assumed shape array and size function support in numpy.f2py F2py now supports wrapping Fortran 90 routines that use assumed shap...
- NumPy 1.6.1 Release Notes
...1.6.1 Release Notes This is a bugfix only release in the 1.6.x series. Issues Fixed #1834: einsum fails for specific shapes #1837: einsum throws nan or freezes python for specific array shapes #1838: object <-> structured type arrays reg...
- 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.8.1 Release Notes
...-2385: absolute(complex(inf)) raises invalid warning in python3 gh-4024: Sequence assignment doesn’t raise exception on shape mismatch gh-4027: Fix chunked reading of strings longer than BUFFERSIZE gh-4109: Fix object scalar return type of...
- 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 C code explanations
...PyArray_Broadcast function takes the iterators that have already been defined and uses them to determine the broadcast shape in each dimension (to create the iterators at the same time that broadcasting occurs then use the PyArray_MultiIte...
- NumPy documentation
...ked arrays and matrices), and an assortment of routines for fast operations on arrays, including mathematical, logical, shape manipulation, sorting, selecting, I/O, discrete Fourier transforms, basic linear algebra, basic statistical operat...
- 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 security
...ading text files, which may require much more memory than the original input file size. If users can create arbitrarily shaped arrays, NumPy’s broadcasting means that intermediate or result arrays can be much larger than the inputs. NumPy...
- numpy.__array_namespace_info__.capabilities
...ndexing”: boolean indicating whether an array library supports boolean indexing. Always True for NumPy. “data-dependent shapes”: boolean indicating whether an array library supports data-dependent output shapes. Always True for NumPy. See...
- numpy.absolute
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.acos
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.acosh
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.add
...e[, signature]) = <ufunc 'add'> Add arguments element-wise. Parameters: x1, x2array_likeThe arrays to be added. If x1.shape != x2.shape, they must be broadcastable to a common shape (which becomes the shape of the output). outndarray, No...
- numpy.all
...all the axes as before. outndarray, optionalAlternate output array in which to place the result. It must have the same shape as the expected output and its type is preserved (e.g., if dtype(out) is float, the result will consist of 0.0’s a...
- numpy.allclose
...zero value in b. The comparison of a and b uses standard broadcasting, which means that a and b need not have the same shape in order for allclose(a, b) to evaluate to True. The same is true for equal but not array_equal. allclose is not...
- numpy.any
...ll the axes as before. outndarray, optionalAlternate output array in which to place the result. It must have the same shape as the expected output and its type is preserved (e.g., if it is of type float, then it will remain so, returning...
- numpy.append
...pended to a copy of this array. valuesarray_likeThese values are appended to a copy of arr. It must be of the correct shape (the same shape as arr, excluding axis). If axis is not specified, values can be any shape and will be flattened...
- numpy.apply_along_axis
...t faster than) the following use of ndindex and s_, which sets each of ii, jj, and kk to a tuple of indices: Ni, Nk = a.shape[:axis], a.shape[axis+1:] for ii in ndindex(Ni): for kk in ndindex(Nk): f = func1d(arr[ii + s_[:,] + kk...
- numpy.apply_over_axes
...t be integers. Returns: apply_over_axisndarrayThe output array. The number of dimensions is the same as a, but the shape can be different. This depends on whether func changes the shape of its output with respect to its input. Se...
- numpy.arange
...mbers with careful handling of endpoints. numpy.ogridArrays of evenly spaced numbers in N-dimensions. numpy.mgridGrid-shaped arrays of evenly spaced numbers in N-dimensions. How to create arrays with regularly-spaced values Examples >>...
- numpy.arccos
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.arccosh
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.arcsin
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.arcsinh
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.arctan
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.arctan2
...values, use angle. Parameters: x1array_like, real-valuedy-coordinates. x2array_like, real-valuedx-coordinates. If x1.shape != x2.shape, they must be broadcastable to a common shape (which becomes the shape of the output). outndarray, No...
- numpy.arctanh
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.argmax
...fied axis. outarray, optionalIf provided, the result will be inserted into this array. It should be of the appropriate shape and dtype. keepdimsbool, optionalIf this is set to True, the axes which are reduced are left in the result as dim...
- numpy.argmin
...fied axis. outarray, optionalIf provided, the result will be inserted into this array. It should be of the appropriate shape and dtype. keepdimsbool, optionalIf this is set to True, the axes which are reduced are left in the result as dim...
- numpy.argpartition
...tion along the given axis using the algorithm specified by the kind keyword. It returns an array of indices of the same shape as a that index data along the given axis in partitioned order. Parameters: aarray_likeArray to sort. kthint or...
- numpy.argsort
...sort along the given axis using the algorithm specified by the kind keyword. It returns an array of indices of the same shape as a that index data along the given axis in sorted order. Parameters: aarray_likeArray to sort. axisint or Non...
- numpy.argwhere
...dex_array(N, a.ndim) ndarrayIndices of elements that are non-zero. Indices are grouped by element. This array will have shape (N, a.ndim) where N is the number of non-zero items. See also where, nonzero Notes np.argwhere(a) is almos...
- 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.array_equal
...numpy.array_equal numpy.array_equal(a1, a2, equal_nan=False)[source] True if two arrays have the same shape and elements, False otherwise. Parameters: a1, a2array_likeInput arrays. equal_nanboolWhether to compare NaN’s...
- numpy.array_equiv
...numpy.array_equiv numpy.array_equiv(a1, a2)[source] Returns True if input arrays are shape consistent and all elements equal. Shape consistent means they are either the same shape, or one input array can b...
- numpy.ascontiguousarray
...patible with that passed in via this argument. New in version 1.20.0. Returns: outndarrayContiguous array of same shape and content as a, with type dtype if specified. See also asfortranarrayConvert input to an ndarray with colu...
- numpy.asin
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.asinh
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.atan
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.atan2
...values, use angle. Parameters: x1array_like, real-valuedy-coordinates. x2array_like, real-valuedx-coordinates. If x1.shape != x2.shape, they must be broadcastable to a common shape (which becomes the shape of the output). outndarray, No...
- numpy.atanh
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.atleast_3d
...Copies are avoided where possible, and views with three or more dimensions are returned. For example, a 1-D array of shape (N,) becomes a view of shape (1, N, 1), and a 2-D array of shape (M, N) becomes a view of shape (M, N, 1). Se...
- 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.bincount
...ameters: xarray_like, 1 dimension, nonnegative intsInput array. weightsarray_like, optionalWeights, array of the same shape as x. minlengthint, optionalA minimum number of bins for the output array. Returns: outndarray of intsThe res...
- numpy.bitwise_and
...unc implements the C/Python operator &. Parameters: x1, x2array_likeOnly integer and boolean types are handled. If x1.shape != x2.shape, they must be broadcastable to a common shape (which becomes the shape of the output). outndarray, No...
- numpy.bitwise_count
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.bitwise_invert
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.bitwise_left_shift
...f integer typeInput values. x2array_like of integer typeNumber of zeros to append to x1. Has to be non-negative. If x1.shape != x2.shape, they must be broadcastable to a common shape (which becomes the shape of the output). outndarray, No...
- numpy.bitwise_or
...unc implements the C/Python operator |. Parameters: x1, x2array_likeOnly integer and boolean types are handled. If x1.shape != x2.shape, they must be broadcastable to a common shape (which becomes the shape of the output). outndarray, No...
- numpy.bitwise_right_shift
...**x2. Parameters: x1array_like, intInput values. x2array_like, intNumber of bits to remove at the right of x1. If x1.shape != x2.shape, they must be broadcastable to a common shape (which becomes the shape of the output). outndarray, No...
- numpy.bitwise_xor
...unc implements the C/Python operator ^. Parameters: x1, x2array_likeOnly integer and boolean types are handled. If x1.shape != x2.shape, they must be broadcastable to a common shape (which becomes the shape of the output). outndarray, No...
- numpy.block
...If passed a single ndarray or scalar (a nested list of depth 0), this is returned unmodified (and not copied). Elements shapes must match along the appropriate axes (without broadcasting), but leading 1s will be prepended to the shape as ne...
- numpy.broadcast
...ast the input parameters against one another, and return an object that encapsulates the result. Amongst others, it has shape and nd properties, and may be used as an iterator. See also broadcast_arrays broadcast_to broadcast_shapes...
- numpy.broadcast.shape
...numpy.broadcast.shape...
- numpy.broadcast_shapes
...mPy reference Routines and objects by topic Miscellaneous routines numpy.broadcast_shapes...
- numpy.broadcast_to
...numpy.broadcast_to numpy.broadcast_to(array, shape, subok=False)[source] Broadcast an array to a new shape. Parameters: arrayarray_likeThe array to broadcast. sha...
- numpy.busday_count
...outarray of int, optionalIf provided, this array is filled with the result. Returns: outarray of intAn array with a shape from broadcasting begindates and enddates together, containing the number of valid days between the begin and end...
- numpy.busday_offset
...64[D], optionalIf provided, this array is filled with the result. Returns: outarray of datetime64[D]An array with a shape from broadcasting dates and offsets together, containing the dates with offsets applied. See also busdaycale...
- numpy.c_
...rticular, arrays will be stacked along their last axis after being upgraded to at least 2-D with 1’s post-pended to the shape (column vectors made out of 1-D arrays). See also column_stackStack 1-D arrays as columns into a 2-D array. r_F...
- numpy.cbrt
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.ceil
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.char.add
...e[, signature]) = <ufunc 'add'> Add arguments element-wise. Parameters: x1, x2array_likeThe arrays to be added. If x1.shape != x2.shape, they must be broadcastable to a common shape (which becomes the shape of the output). outndarray, No...
- 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.astype
...or returning the input array are satisfied (see description for copy input parameter), arr_t is a new array of the same shape as the input array, with dtype, order given by dtype, order. Raises: ComplexWarningWhen casting from complex t...
- numpy.char.chararray.ctypes
...easier to use arrays when calling shared libraries with the ctypes module. The returned object has, among others, data, shape, and strides attributes (see Notes below) which themselves return ctypes objects that can be used as arguments to...
- numpy.char.chararray.flags
...dimensional arrays. Even for contiguous arrays a stride for a given dimension arr.strides[dim] may be arbitrary if arr.shape[dim] == 1 or the array has no elements. It does not generally hold that self.strides[-1] == self.itemsize for C-st...
- numpy.char.chararray.nbytes
...y object. Examples >>> import numpy as np >>> x = np.zeros((3,5,2), dtype=np.complex128) >>> x.nbytes 480 >>> np.prod(x.shape) * x.itemsize 480...
- numpy.char.chararray.reshape
...Legacy fixed-width string functionality numpy.char.chararray numpy.char.chararray.reshape...
- numpy.char.chararray.resize
...numpy.char.chararray.resize method char.chararray.resize(new_shape, refcheck=True) Change shape and size of array in-place. Parameters: new_shapetuple of ints, or n intsShape of r...
- numpy.char.chararray.shape
...numpy.char.chararray.shape...
- numpy.char.chararray.size
...numpy.char.chararray.size attribute char.chararray.size Number of elements in the array. Equal to np.prod(a.shape), i.e., the product of the array’s dimensions. Notes a.size returns a standard arbitrary precision Python integer....
- numpy.char.chararray.transpose
...muted. See also transposeEquivalent function. ndarray.TArray property returning the array transposed. ndarray.reshapeGive a new shape to an array without changing its data. Examples >>> import numpy as np >>> a = np.array([[1, 2]...
- numpy.char.chararray.view
...class) or a.view(type=ndarray_subclass) just returns an instance of ndarray_subclass that looks at the same array (same shape, dtype, etc.) This does not cause a reinterpretation of the memory. For a.view(some_dtype), if some_dtype has a d...
- numpy.char.compare_chararrays
...end of Strings are removed before the comparison. Returns: outndarrayThe output array of type Boolean with the same shape as a and b. Raises: ValueErrorIf cmp is not valid. TypeErrorIf at least one of a or b is a non-string array...
- numpy.char.equal
...ided for backward-compatibility with numarray. Parameters: x1, x2array_like of str or unicodeInput arrays of the same shape. Returns: outndarrayOutput array of bools. See also not_equal, greater_equal, less_equal, greater, less...
- numpy.char.greater
...ided for backward-compatibility with numarray. Parameters: x1, x2array_like of str or unicodeInput arrays of the same shape. Returns: outndarrayOutput array of bools. See also equal, not_equal, greater_equal, less_equal, less...
- numpy.char.greater_equal
...ided for backward-compatibility with numarray. Parameters: x1, x2array_like of str or unicodeInput arrays of the same shape. Returns: outndarrayOutput array of bools. See also equal, not_equal, less_equal, greater, less Exampl...
- numpy.char.isalnum
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.char.isalpha
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.char.isdecimal
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.char.isdigit
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.char.islower
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.char.isnumeric
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.char.isspace
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.char.istitle
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.char.isupper
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.char.less
...ided for backward-compatibility with numarray. Parameters: x1, x2array_like of str or unicodeInput arrays of the same shape. Returns: outndarrayOutput array of bools. See also equal, not_equal, greater_equal, less_equal, greater...
- numpy.char.less_equal
...ided for backward-compatibility with numarray. Parameters: x1, x2array_like of str or unicodeInput arrays of the same shape. Returns: outndarrayOutput array of bools. See also equal, not_equal, greater_equal, greater, less Exa...
- numpy.char.not_equal
...ided for backward-compatibility with numarray. Parameters: x1, x2array_like of str or unicodeInput arrays of the same shape. Returns: outndarrayOutput array of bools. See also equal, greater_equal, less_equal, greater, less Ex...
- numpy.char.str_len
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.choose
...le than it might seem from the following code description: np.choose(a,c) == np.array([c[a[I]][I] for I in np.ndindex(a.shape)]) But this omits some subtleties. Here is a fully general summary: Given an “index” array (a) of integers and...
- numpy.clip
...nalThe results will be placed in this array. It may be the input array for in-place clipping. out must be of the right shape to hold the output. Its type is preserved. min, maxarray_like or NoneArray API compatible alternatives for a_min...
- numpy.compress
...lt), work on the flattened array. outndarray, optionalOutput array. Its type is preserved and it must be of the right shape to hold the output. Returns: compressed_arrayndarrayA copy of a without the slices along axis for which condit...
- numpy.concat
...a sequence of arrays along an existing axis. Parameters: a1, a2, …sequence of array_likeThe arrays must have the same shape, except in the dimension corresponding to axis (the first, by default). axisint, optionalThe axis along which the...
- numpy.concatenate
...a sequence of arrays along an existing axis. Parameters: a1, a2, …sequence of array_likeThe arrays must have the same shape, except in the dimension corresponding to axis (the first, by default). axisint, optionalThe axis along which the...
- numpy.conj
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.conjugate
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.convolve
...e’}, optional ‘full’:By default, mode is ‘full’. This returns the convolution at each point of overlap, with an output shape of (N+M-1,). At the end-points of the convolution, the signals do not overlap completely, and boundary effects may...
- numpy.copysign
...ments of x1. Parameters: x1array_likeValues to change the sign of. x2array_likeThe sign of x2 is copied to x1. If x1.shape != x2.shape, they must be broadcastable to a common shape (which becomes the shape of the output). outndarray, No...
- numpy.corrcoef
...variables. Also see rowvar below. yarray_like, optionalAn additional set of variables and observations. y has the same shape as x. rowvarbool, optionalIf rowvar is True (default), then each row represents a variable, with observations in...
- numpy.cos
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.cosh
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.cumprod
...eger is used instead. outndarray, optionalAlternative output array in which to place the result. It must have the same shape and buffer length as the expected output but the type of the resulting values will be cast if necessary. Return...
- numpy.cumsum
...form integer is used. outndarray, optionalAlternative output array in which to place the result. It must have the same shape and buffer length as the expected output but the type will be cast if necessary. See Output type determination for...
- numpy.cumulative_prod
...eger is used instead. outndarray, optionalAlternative output array in which to place the result. It must have the same shape and buffer length as the expected output but the type of the resulting values will be cast if necessary. See Outpu...
- numpy.cumulative_sum
...form integer is used. outndarray, optionalAlternative output array in which to place the result. It must have the same shape and buffer length as the expected output but the type will be cast if necessary. See Output type determination for...
- numpy.datetime_as_string
...‘unsafe’}Casting to allow when changing between datetime units. Returns: str_arrndarrayAn array of strings the same shape as arr. Examples >>> import numpy as np >>> import pytz >>> d = np.arange('2002-10-27T04:30', 4*60, 60, dtype=...
- numpy.deg2rad
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.degrees
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.diag_indices
...s returns a tuple of indices that can be used to access the main diagonal of an array a with a.ndim >= 2 dimensions and shape (n, n, …, n). For a.ndim = 2 this is the usual diagonal, for a.ndim > 2 this is the set of indices to access a[i,...
- numpy.diag_indices_from
...least 2-D See also diag_indices Examples >>> import numpy as np Create a 4 by 4 array. >>> a = np.arange(16).reshape(4, 4) >>> a array([[ 0, 1, 2, 3], [ 4, 5, 6, 7], [ 8, 9, 10, 11], [12, 13, 14, 15]])...
- numpy.diagonal
...ns, then the axes specified by axis1 and axis2 are used to determine the 2-D sub-array whose diagonal is returned. The shape of the resulting array can be determined by removing axis1 and axis2 and appending an index to the right equal to...
- numpy.diff
...rior to performing the difference. Scalar values are expanded to arrays with length 1 in the direction of axis and the shape of the input array in along all other axes. Otherwise the dimension and shape must match a except along axis....
- numpy.digitize
...: xarray_likeInput array to be binned. Prior to NumPy 1.10.0, this array had to be 1-dimensional, but can now have any shape. binsarray_likeArray of bins. It has to be 1-dimensional and monotonic. rightbool, optionalIndicating whether th...
- numpy.divide
...nc 'divide'> Divide arguments element-wise. Parameters: x1array_likeDividend array. x2array_likeDivisor array. If x1.shape != x2.shape, they must be broadcastable to a common shape (which becomes the shape of the output). outndarray, No...
- numpy.divmod
...n built-in function divmod on NumPy arrays. Parameters: x1array_likeDividend array. x2array_likeDivisor array. If x1.shape != x2.shape, they must be broadcastable to a common shape (which becomes the shape of the output). outndarray, No...
- numpy.dsplit
...plitSplit an array into multiple sub-arrays of equal size. Examples >>> import numpy as np >>> x = np.arange(16.0).reshape(2, 2, 4) >>> x array([[[ 0., 1., 2., 3.], [ 4., 5., 6., 7.]], [[ 8., 9., 10., 11.],...
- numpy.dstack
...in sequence depth wise (along third axis). This is equivalent to concatenation along the third axis after 2-D arrays of shape (M,N) have been reshaped to (M,N,1) and 1-D arrays of shape (N,) have been reshaped to (1,N,1). Rebuilds arrays di...
- numpy.dtype
...>>> np.dtype([('a','f8'),('b','S10')]) dtype([('a', '<f8'), ('b', 'S10')]) Using comma-separated field formats. The shape is (2,3): >>> np.dtype("i4, (2,3)f8") dtype([('f0', '<i4'), ('f1', '<f8', (2, 3))]) Using tuples. int is a fixe...
- numpy.dtype.base
- numpy.dtype.shape
...NumPy reference Array objects Data type objects (dtype) numpy.dtype.shape...
- numpy.dtype.subdtype
- numpy.einsum
...ulti_dot einsumSimilar verbose interface is provided by the einops package to cover additional operations: transpose, reshape/flatten, repeat/tile, squeeze/unsqueeze and reductions. The opt_einsum optimizes contraction order for einsum-like...
- numpy.empty
...numpy.empty numpy.empty(shape, dtype=float, order='C', *, device=None, like=None) Return a new array of given shape and type, without initializi...
- numpy.empty_like
...numpy.empty_like numpy.empty_like(prototype, dtype=None, order='K', subok=True, shape=None, *, device=None) Return a new array with the same shape and type as a given array. Parameters: prototypearr...
- numpy.equal
...=True[, signature]) = <ufunc 'equal'> Return (x1 == x2) element-wise. Parameters: x1, x2array_likeInput arrays. If x1.shape != x2.shape, they must be broadcastable to a common shape (which becomes the shape of the output). outndarray, No...
- numpy.exp
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.exp2
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.expand_dims
- numpy.expm1
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.eye
...of an array object compatible with that passed in via this argument. New in version 1.20.0. Returns: Indarray of shape (N,M)An array where all elements are equal to zero, except for the k-th diagonal, whose values are equal to one....
- numpy.fabs
...ay, None, or tuple of ndarray and None, optionalA location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible on...
- numpy.fft.fft
...ed. outcomplex ndarray, optionalIf provided, the result will be placed in this array. It should be of the appropriate shape and dtype. New in version 2.0.0. Returns: outcomplex ndarrayThe truncated or zero-padded input, transformed...
- numpy.fft.fft2
...nput array, i.e., a 2-dimensional FFT. Parameters: aarray_likeInput array, can be complex ssequence of ints, optionalShape (length of each transformed axis) of the output (s[0] refers to axis 0, s[1] to axis 1, etc.). This corresponds to...
- numpy.fft.fftn
...of the Fast Fourier Transform (FFT). Parameters: aarray_likeInput array, can be complex. ssequence of ints, optionalShape (length of each transformed axis) of the output (s[0] refers to axis 0, s[1] to axis 1, etc.). This corresponds to...
- numpy.fft.fftshift
- numpy.fft.hfft
- numpy.fft.ifft
...ed. outcomplex ndarray, optionalIf provided, the result will be placed in this array. It should be of the appropriate shape and dtype. New in version 2.0.0. Returns: outcomplex ndarrayThe truncated or zero-padded input, transformed...
- numpy.fft.ifft2
...r of decreasingly negative frequency. Parameters: aarray_likeInput array, can be complex. ssequence of ints, optionalShape (length of each axis) of the output (s[0] refers to axis 0, s[1] to axis 1, etc.). This corresponds to n for ifft...
- numpy.fft.ifftn
...r of decreasingly negative frequency. Parameters: aarray_likeInput array, can be complex. ssequence of ints, optionalShape (length of each transformed axis) of the output (s[0] refers to axis 0, s[1] to axis 1, etc.). This corresponds to...
- numpy.fft.ifftshift
- numpy.fft.ihfft
- numpy.fft.irfft
- numpy.fft.irfft2
- numpy.fft.irfftn
- numpy.fft.rfft
- numpy.fft.rfft2
- numpy.fft.rfftn
- numpy.fix
- numpy.flip
- numpy.float_power
- numpy.floor
- numpy.floor_divide
- numpy.fmax
- numpy.fmin
- numpy.fmod
- numpy.frexp
- numpy.fromfunction
- numpy.full
- numpy.full_like
- numpy.gcd
- numpy.generic.shape
- numpy.gradient
- numpy.greater
- numpy.greater_equal
- numpy.hanning
- numpy.heaviside
- numpy.histogram
- numpy.histogram2d
- numpy.histogram_bin_edges
- numpy.histogramdd
- numpy.hsplit
- numpy.hstack
- numpy.hypot
- numpy.i0
- numpy.i: a SWIG interface file for NumPy
- numpy.in1d
- numpy.indices
- numpy.info
- numpy.inner
- numpy.insert
- numpy.interp
- numpy.invert
- numpy.is_busday
- numpy.iscomplexobj
- numpy.isfinite
- numpy.isin
- numpy.isinf
- numpy.isnan
- numpy.isnat
- numpy.isneginf
- numpy.isposinf
- numpy.isreal
- numpy.isrealobj
- numpy.isscalar
- numpy.ix_
- numpy.kaiser
- numpy.kron
- numpy.lcm
- numpy.ldexp
- numpy.left_shift
- numpy.less
- numpy.less_equal
- numpy.lexsort
- numpy.lib.array_utils.normalize_axis_index
- numpy.lib.Arrayterator
- numpy.lib.Arrayterator.shape
- numpy.lib.format
- numpy.lib.format.open_memmap
- numpy.lib.format.read_array_header_1_0
- numpy.lib.format.read_array_header_2_0
- numpy.lib.stride_tricks.as_strided
- numpy.lib.stride_tricks.sliding_window_view
- numpy.linalg.det
- 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.tensordot
- numpy.linalg.tensorinv
- numpy.linalg.tensorsolve
- numpy.linalg.trace
- numpy.log
- numpy.log10
- numpy.log1p
- numpy.log2
- numpy.logaddexp
- numpy.logaddexp2
- numpy.logical_and
- numpy.logical_not
- numpy.logical_or
- numpy.logical_xor
- numpy.ma.anom
- numpy.ma.anomalies
- numpy.ma.append
- numpy.ma.apply_along_axis
- numpy.ma.apply_over_axes
- numpy.ma.arange
- numpy.ma.argmax
- numpy.ma.argmin
- numpy.ma.array
- numpy.ma.atleast_3d
- numpy.ma.average
- numpy.ma.choose
- numpy.ma.clip
- numpy.ma.concatenate
- numpy.ma.conjugate
- numpy.ma.corrcoef
- numpy.ma.count
- numpy.ma.cov
- numpy.ma.diff