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