Struct newton_rootfinder::residuals::ResidualsConfig[][src]

pub struct ResidualsConfig<'a> { /* fields omitted */ }
Expand description

Residuals configuration used by the solver

The solver is using directly two slices to perform its calculation

  • the update_methods used for computing the jacobian
  • the stopping_criterias used to control if another iteration is performed

It is possible to used a Vec<ResidualConfig> to create such a struct thanks to the convert_into_vecs() method.

However, if the performance is critical for the user, it should create is own arrays to feed to the new() constructor and not use ResidualConfig (singular)

Implementations

Method to generate the vector of stopping_criteras and update_methods from a vector of ResidualConfig

Evaluation of the value of the update residuals thanks to the normalization() function

Evaluation of the value of the stopping residuals thanks to the normalization() function

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.