add NaN checks for input matrix A in GEEV, return error if NaN are in matrix A, NaNs in input are detected with LANGE (needed for scaling) #1136
+34
−18
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds a NaN check on the entries of the input matrix A in GEEV,
GEEV would now return error
INFO = -4
if there are NaNs in matrix A in input.NaNs in input are detected with LANGE. Since LANGE is called for scaling anyway, there is no extra cost.
This follows @angsch's suggestion in issue #1128. This uses
DISNAN
instead ofDISFINITE
(as initially suggested). I am not opposed to create aDISFINITE
function and use it, but I think it needs more decisions and consensus.See as well PR#471 for a "similar" behavior.