stator
A math, geometry, and utility library
Functions
stator::numeric::detail Namespace Reference

Functions

template<class F , size_t Derivatives, class Real >
int process_iterative_step (const F &f, std::array< Real, Derivatives > &curr_state, Real &x, Real new_x, Real &low_bound, Real &high_bound, Real x_precision)
 Update and checking of safeguards, called after an iterative step is taken towards a root. More...
 

Function Documentation

◆ process_iterative_step()

template<class F , size_t Derivatives, class Real >
int stator::numeric::detail::process_iterative_step ( const F &  f,
std::array< Real, Derivatives > &  curr_state,
Real &  x,
Real  new_x,
Real &  low_bound,
Real &  high_bound,
Real  x_precision 
)
inline

Returns 0 on error, 1 on successful, and 2 on converged.

Definition at line 33 of file numeric.hpp.