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