scipy.sparse
scipy.sparse.dia_matrix.asfptype
scipy.sparse.dia_matrix.ceil
dia_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.