Search
Searching
- numpy.ma.MaskType.itemsize
...numpy.ma.MaskType.itemsize...
- numpy.ma.MaskType.itemsize (Python attribute, in numpy.ma.MaskType.itemsize)
- NumPy 1.14.0 Release Notes
..., considering a buffer of all zeros as false, and anything else as true. Checks for V0 can still be done with arr.dtype.itemsize == 0. MaskedArray.squeeze never returns np.ma.masked np.squeeze is documented as returning a view, but the ma...
- NumPy 1.18.0 Release Notes
...yDataType_ISUNSIZED(descr) now returns False for structured datatypes Previously this returned True for any datatype of itemsize 0, but now this returns false for the non-flexible datatype with itemsize 0, np.dtype([]). (gh-14393) New Fe...
- NumPy 1.22.0 Release Notes
...({"names": ["a"], "formats": [int], "offsets": [2]}) is now dtype({'names': ['a'], 'formats': ['<i8'], 'offsets': [2], 'itemsize': 10}), whereas spaces where previously omitted after colons and between fields. The old behavior can be restor...
- NumPy 1.23.0 Release Notes
...s requested but the value is formatted as a floating point number. (gh-21663) Expired deprecations The NpzFile.iteritems() and NpzFile.iterkeys() methods have been removed as part of the continued removal of Python 2 compatibility. Thi...
- NumPy 2.0.0 Release Notes
...hon scalar instead. np.round_ has been removed. Use np.round instead. np.nbytes has been removed. Use np.dtype(<dtype>).itemsize instead. (gh-24477) np.compare_chararrays has been removed from the main namespace. Use np.char.compare_charar...
- numpy.ma.is_mask
...turn True if m is a valid, standard mask. This function does not check the contents of the input, only that the type is MaskType. In particular, this function returns False if the mask has a flexible dtype. Parameters: marray_likeArray to...
- numpy.ma.make_mask
...all its values are False. dtypedtype, optionalData-type of the output mask. By default, the output mask has a dtype of MaskType (bool). If the dtype is flexible, each field has a boolean dtype. This is ignored when m is nomask, in which ca...
- numpy.ma.make_mask_none
...type. Parameters: newshapetupleA tuple indicating the shape of the mask. dtype{None, dtype}, optionalIf None, use a MaskType instance. Otherwise, use a new datatype with the same fields as dtype, converted to boolean types. Returns:...
- numpy.ma.masked_array.flags
...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-style contiguous arrays or self.strides[0] == self.itemsize for Fortran-style contiguous arrays is true....
- numpy.ma.masked_array.itemsize
...numpy.ma.masked_array.itemsize...
- numpy.ma.masked_array.nbytes
...xamples >>> import numpy as np >>> x = np.zeros((3,5,2), dtype=np.complex128) >>> x.nbytes 480 >>> np.prod(x.shape) * x.itemsize 480...
- numpy.ma.masked_array.strides
...20, 21, 22, 23]]]) >>> y.strides (48, 16, 4) >>> y[1,1,1] 17 >>> offset=sum(y.strides * np.array((1,1,1))) >>> offset/y.itemsize 17 >>> x = np.reshape(np.arange(5*6*7*8), (5,6,7,8)).transpose(2,3,1,0) >>> x.strides (32, 4, 224, 1344) >>>...
- numpy.ma.MaskedArray.flags
...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-style contiguous arrays or self.strides[0] == self.itemsize for Fortran-style contiguous arrays is true....
- numpy.ma.MaskedArray.itemsize
...Array objects Masked arrays Constants of the numpy.ma module numpy.ma.MaskedArray.itemsize...
- numpy.ma.MaskedArray.nbytes
...xamples >>> import numpy as np >>> x = np.zeros((3,5,2), dtype=np.complex128) >>> x.nbytes 480 >>> np.prod(x.shape) * x.itemsize 480...
- numpy.ma.MaskedArray.strides
...20, 21, 22, 23]]]) >>> y.strides (48, 16, 4) >>> y[1,1,1] 17 >>> offset=sum(y.strides * np.array((1,1,1))) >>> offset/y.itemsize 17 >>> x = np.reshape(np.arange(5*6*7*8), (5,6,7,8)).transpose(2,3,1,0) >>> x.strides (32, 4, 224, 1344) >>>...
- numpy.ma.MaskType
- numpy.ma.MaskType.all
...numpy.ma.MaskType.all...
- numpy.ma.MaskType.any
...numpy.ma.MaskType.any...
- numpy.ma.MaskType.argmax
...numpy.ma.MaskType.argmax...
- numpy.ma.MaskType.argmin
...numpy.ma.MaskType.argmin...
- numpy.ma.MaskType.argsort
...numpy.ma.MaskType.argsort...
- numpy.ma.MaskType.astype
...numpy.ma.MaskType.astype...
- numpy.ma.MaskType.base
...numpy.ma.MaskType.base...
- numpy.ma.MaskType.byteswap
...numpy.ma.MaskType.byteswap...
- numpy.ma.MaskType.choose
- numpy.ma.MaskType.clip
- numpy.ma.MaskType.compress
- numpy.ma.MaskType.conj
- numpy.ma.MaskType.conjugate
- numpy.ma.MaskType.copy
- numpy.ma.MaskType.cumprod
- numpy.ma.MaskType.cumsum
- numpy.ma.MaskType.data
- numpy.ma.MaskType.device
- numpy.ma.MaskType.diagonal
- numpy.ma.MaskType.dtype
- numpy.ma.MaskType.dump
- numpy.ma.MaskType.dumps