pub fn validate_params(
tolerance: f64,
max_iterations: usize,
) -> Result<(), ValidationError>Expand description
Validate solver convergence parameters.
§Rules
tolerancemust be in the range(0.0, 1.0]and be finite.max_iterationsmust be in[1, MAX_ITERATIONS].
§Errors
Returns ValidationError::ParameterOutOfRange if either parameter is
outside its valid range.