This is documentation for an old release of NumPy (version 1.6.0). Read this page Search for this page in the documentation of the latest stable release (version > 1.17).
numpy.matrix.dtype
-
matrix.dtype
Data-type of the array’s elements.
Parameters : | None : |
Returns : | d : numpy dtype object |
Examples
>>> x
array([[0, 1],
[2, 3]])
>>> x.dtype
dtype('int32')
>>> type(x.dtype)
<type 'numpy.dtype'>