Module newton_rootfinder::iteratives
source · [−]Expand description
This module defines the iteratives variables
Iteratives variables are defined through the Iterative
trait
Two kind of iterative variables are provided :
IterativeParams
IterativeParamsFD
that extends the previous one to work with finite-difference
The struct Iteratives
(plural) is holding the array or vector of the previous parameters
and is the one that will be used by the solver
It is possible to create default iteratives variables with the following lines:
Examples
use newton_rootfinder as nrf;
use nrf::iteratives::{Iteratives, IterativeParams, IterativeParamsFD};
let size = 5;
let my_iters_fd = Iteratives::new(&vec![IterativeParamsFD::default(); size]);
let my_iters = Iteratives::new(&vec![IterativeParams::default(); size]);
Structs
The parameters of an iterative variable
Extension of iteratives. FD stands for Finite-Difference
A slice of iteratives
Enums
Perturbation method used for the
compute_perturbation()
method from the Iterative
trait by the IterativeParamsFD
structTraits
Iterative definition
Functions
Constructor with default values for iteratives parameters
Constructor with default values for iteratives parameters with finite-differences