rulinalg icon indicating copy to clipboard operation
rulinalg copied to clipboard

Cholesky: Fix misleading error message

Open vks opened this issue 8 years ago • 2 comments

The diagonals of the decomposed matrix were negative, which means the original matrix was not positive definite (even if the diagonal was positive).

vks avatar Jun 02 '17 11:06 vks

I think this is a good change from the user perspective! @Andlon am I missing anything here?

AtheMathmo avatar Jun 02 '17 12:06 AtheMathmo

Thanks for the PR @vks! Yes, I agree that the original error message is indeed misleading.

Note that the documentation for the method also needs to be updated as it has a similar wording as the original error message. Would you mind changing this as well @vks? In this case, we need to be a bit careful with how it is worded.

I see now that also the other documented error message is misleading, since it states that:

A diagonal entry is effectively zero to working precision.

As you pointed out, it is not the diagonal entry in the original matrix, but the diagonal entry in the decomposition which is being carried out. Perhaps just replace this by "The matrix is effectively singular to working precision"?

Andlon avatar Jun 03 '17 15:06 Andlon