DebugConvergency

Struct DebugConvergency 

Source
pub struct DebugConvergency<F: FloatType> { /* private fields */ }
Expand description

Convergency provider for debugging. It will print out the error at each iteration.

Implementations§

Source§

impl<F: FloatType> DebugConvergency<F>

Source

pub fn new(eps: F, max_iter: usize) -> DebugConvergency<F>

Source

pub fn reset(self: &mut DebugConvergency<F>)

Source

pub fn get_iter_count(self: &DebugConvergency<F>) -> usize

Trait Implementations§

Source§

impl<F: FloatType + Display + LowerExp> Convergency<F> for DebugConvergency<F>

Source§

fn is_root_found(&mut self, y: F) -> bool

Prints the value being checked

Source§

fn is_converged(&mut self, x1: F, x2: F) -> bool

Prints values being checked

Source§

fn is_iteration_limit_reached(&mut self, iter: usize) -> bool

Updates internal iteration counter

Auto Trait Implementations§

§

impl<F> Freeze for DebugConvergency<F>
where F: Freeze,

§

impl<F> RefUnwindSafe for DebugConvergency<F>
where F: RefUnwindSafe,

§

impl<F> Send for DebugConvergency<F>
where F: Send,

§

impl<F> Sync for DebugConvergency<F>
where F: Sync,

§

impl<F> Unpin for DebugConvergency<F>
where F: Unpin,

§

impl<F> UnwindSafe for DebugConvergency<F>
where F: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.