[][src]Struct ohsl::newton::Newton

pub struct Newton<T> { /* fields omitted */ }

Implementations

impl<T> Newton<T>[src]

pub const fn new(guess: T) -> Self[src]

Create a new newton object

pub fn tolerance(&mut self, tolerance: f64)[src]

Edit the convergence tolerance

pub fn delta(&mut self, delta: f64)[src]

Edit the finite difference derivative step

pub fn iterations(&mut self, iterations: usize)[src]

Edit the maximum number of iterations

pub fn guess(&mut self, guess: T)[src]

Edit the initial guess

impl<T: Copy> Newton<T>[src]

pub fn parameters(&self) -> (f64, f64, usize, T)[src]

Return the current parameters as a tuple

impl Newton<f64>[src]

pub fn solve(&self, func: &dyn Fn(f64) -> f64) -> Result<f64, f64>[src]

Solve the equation via Newton iteration

impl Newton<Vec64>[src]

pub fn solve(&self, func: &dyn Fn(Vec64) -> Vec64) -> Result<Vec64, Vec64>[src]

Solve the vector equation via Newton iteration

pub fn solve_jacobian(
    &self,
    func: &dyn Fn(Vec64) -> Vec64,
    jac: &dyn Fn(Vec64) -> Mat64
) -> Result<Vec64, Vec64>
[src]

Solve the vector equation via Newton iteration using the exact Jacobian

Auto Trait Implementations

impl<T> RefUnwindSafe for Newton<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for Newton<T> where
    T: Send
[src]

impl<T> Sync for Newton<T> where
    T: Sync
[src]

impl<T> Unpin for Newton<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for Newton<T> where
    T: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,