pub fn validate_output(result: &SolverResult) -> Result<(), ValidationError>Expand description
Validate a solver result after computation completes.
This catches silent numerical corruption that may have occurred during iteration:
- No
NaNorInfin the solution vector. - The residual norm is finite.
- At least one iteration was performed.
§Errors
Returns ValidationError if the output is corrupted.