pub fn with_tol(mut self, tol: F) -> Result<Self, Error> {
        if tol <= F::from_f64(0.0).unwrap() {
            return Err(ArgminError::InvalidParameter {
                text: "Gauss-Newton-Linesearch: tol must be positive.".to_string(),
            }
            .into());
        }
        self.tol = tol;
        Ok(self)
    }
/// Set tolerance for the stopping criterion based on cost difference
Set tolerance for the stopping criterion based on cost difference
Set tolerance for the stopping criterion based on cost difference
pub fn with_tol(mut self, tol: F) -> Result<Self, Error> {
        if tol <= F::from_f64(0.0).unwrap() {
            return Err(ArgminError::InvalidParameter {
                text: "Gauss-Newton-Linesearch: tol must be positive.".to_string(),
            }
            .into());
        }
        self.tol = tol;
        Ok(self)
    }
pub fn with_tol ( mut self , tol : F ) -> Result < Self , Error > { if tol <= F :: from_f64 ( 0.0 ) . unwrap ( ) { return Err ( ArgminError :: InvalidParameter { text : " " . to_string ( ) , } . into ( ) ) ; } self . tol = tol ; Ok ( self ) }
Set tolerance for the stopping criterion based on cost difference
Set tolerance for the stopping criterion based on cost difference
mut self
tol
F