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>
impl<F: FloatType> DebugConvergency<F>
pub fn new(eps: F, max_iter: usize) -> DebugConvergency<F>
pub fn reset(self: &mut DebugConvergency<F>)
pub fn get_iter_count(self: &DebugConvergency<F>) -> usize
Trait Implementations§
Source§impl<F: FloatType + Display + LowerExp> Convergency<F> for DebugConvergency<F>
impl<F: FloatType + Display + LowerExp> Convergency<F> for DebugConvergency<F>
Source§fn is_root_found(&mut self, y: F) -> bool
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
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
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more