DOC Fix error text when null_space fails with ARPACK
@@ -166,10 +166,11 @@ def null_space(M, k, k_skip=1, eigen_solver='arpack', tol=1E-6, max_iter=100,
except RuntimeError as msg:
raise ValueError("Error in determining null-space with ARPACK. "
"Error message: '%s'. "
- "Note that method='arpack' can fail when the "
- "weight matrix is singular or otherwise "
- "ill-behaved. method='dense' is recommended. "
- "See online documentation for more information."
+ "Note that eigen_solver='arpack' can fail when "
+ "the weight matrix is singular or otherwise "
+ "ill-behaved. In that case, eigen_solver='dense' "
+ "is recommended. See online documentation for "
+ "more information."
% msg)
return eigen_vectors[:, k_skip:], np.sum(eigen_values[k_skip:])
