Skip to main content

validate_params

Function validate_params 

Source
pub fn validate_params(
    tolerance: f64,
    max_iterations: usize,
) -> Result<(), ValidationError>
Expand description

Validate solver convergence parameters.

§Rules

  • tolerance must be in the range (0.0, 1.0] and be finite.
  • max_iterations must be in [1, MAX_ITERATIONS].

§Errors

Returns ValidationError::ParameterOutOfRange if either parameter is outside its valid range.