Struct rgsl::types::multifit_solver::MultiFitFdfSolver
source · [−]pub struct MultiFitFdfSolver { /* private fields */ }
Implementations
sourceimpl MultiFitFdfSolver
impl MultiFitFdfSolver
sourcepub fn new(
_type: &MultiFitFdfSolverType,
n: usize,
p: usize
) -> Option<MultiFitFdfSolver>
pub fn new(
_type: &MultiFitFdfSolverType,
n: usize,
p: usize
) -> Option<MultiFitFdfSolver>
This function returns a pointer to a newly allocated instance of a solver of type T for n observations and p parameters. The number of observations n must be greater than or equal to parameters p.
sourcepub fn set(&mut self, f: &mut MultiFitFunctionFdf, x: &VectorF64) -> Value
pub fn set(&mut self, f: &mut MultiFitFunctionFdf, x: &VectorF64) -> Value
This function initializes, or reinitializes, an existing solver s to use the function f and the initial guess x.
pub fn x(&self) -> VectorF64
pub fn f(&self) -> VectorF64
pub fn dx(&self) -> VectorF64
pub fn g(&self) -> VectorF64
pub fn sqrt_wts(&self) -> VectorF64
pub fn name(&self) -> String
sourcepub fn iterate(&mut self) -> Value
pub fn iterate(&mut self) -> Value
This function performs a single iteration of the solver s. If the iteration encounters an unexpected problem then an error code will be returned. The solver maintains a current estimate of the best-fit parameters at all times.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MultiFitFdfSolver
impl !Send for MultiFitFdfSolver
impl !Sync for MultiFitFdfSolver
impl Unpin for MultiFitFdfSolver
impl UnwindSafe for MultiFitFdfSolver
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more