Struct newton_rootfinder::solver::RootFinder[][src]

pub struct RootFinder<'a, T, D> where
    T: Iterative + Display,
    D: DimMin<D, Output = D>,
    DefaultAllocator: Allocator<f64, D>,
    DefaultAllocator: Allocator<f64, U1, D>,
    DefaultAllocator: Allocator<f64, D, D>,
    DefaultAllocator: Allocator<(usize, usize), D>, 
{ /* fields omitted */ }
Expand description

Solver for rootfinding

The solver operates on the model and mutate it

The core functionnality is the solve() method

The user can activate the debugging before the resolution thanks to the set_debug() method

Implementations

Activate the gathering of the log

The path must be provided (as .txt file) This generate a .txt file at the given path with simulation informations.

Examples
use newton_rootfinder as nrf;
let mut rf = nrf::solver::default_with_guess(init_guess, &iter_params, &res_config, ResolutionMethod::NewtonRaphson, damping);

rf.activate_debug(&"solver_log.txt");
rf.solve(&mut user_model);

The core function performing the resolution on a given Model

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.

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.