Section Navigation
ndarray
dtype
ufunc
numpy.typing
numpy.distutils
attribute
Length of one array element in bytes.
Examples
>>>importnumpyasnp>>>x=np.array([1,2,3],dtype=np.float64)>>>x.itemsize8>>>x=np.array([1,2,3],dtype=np.complex128)>>>x.itemsize16
ndarray.itemsize