scipy.sparse
scipy.sparse.dok_matrix.asfptype
scipy.sparse.dok_matrix.clear
dok_matrix.
astype
Cast the matrix elements to a specified type.
The data will be copied.
t : string or numpy dtype
Typecode or data-type to which to cast the data.