COO.dtype¶
-
COO.
dtype
¶ The datatype of this array.
- Returns
The datatype of this array.
- Return type
See also
numpy.ndarray.dtype
Numpy equivalent property.
scipy.sparse.coo_matrix.dtype
Scipy equivalent property.
Examples
>>> x = (200 * np.random.rand(5, 4)).astype(np.int32) >>> s = COO.from_numpy(x) >>> s.dtype dtype('int32') >>> x.dtype == s.dtype True