scipy.sparse
scipy.sparse.dia_matrix.asformat
scipy.sparse.dia_matrix.astype
dia_matrix.
asfptype
Upcast matrix to a floating point format (if necessary)