Struct roots::DebugConvergency [] [src]

pub struct DebugConvergency<F: FloatType> {
    // some fields omitted
}

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

Methods

impl<F: FloatType> DebugConvergency<F>
[src]

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

fn reset(self: &DebugConvergency<F>)

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

Trait Implementations

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

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

Prints the value being checked

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

Prints values being checked

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

Updates internal iteration counter