template <class T>
class vtb::core::Bisection< T, 1 >
Methods
  • max_iterations(int n) -> void
  • max_iterations() const -> int
  • function_precision(T eps) -> void
  • argument_precision(T eps) -> void
  • template <class Func>
    operator()(const T & lbound, const T & ubound, Func func) const -> T
  • Bisection(const T & argeps, const T & funceps, int niterations)
  • Bisection()
template <class T, int N>
class vtb::core::Bisection
Methods
  • max_iterations(int n) -> void
  • max_iterations() const -> int
  • function_precision(const vec & eps) -> void
  • argument_precision(const vec & eps) -> void
  • template <class Func>
    operator()(const vec & lbound, const vec & ubound, Func func) const -> vec
  • Bisection(const vec & argeps, const vec & funceps, int niterations)
  • Bisection()
template <class T, class F>
bisection(T a, T b, F func, T arg_eps, T func_eps, int max_iter) -> T

One-dimensional bisection.

a
lower bound

b
upper bound

func
objective function

max_iter
maximum number of iterations

arg_eps
argument precision

func_eps
return value precision

template <class T, int N, class F>
bisection(blitz::TinyVector< T, N > a, blitz::TinyVector< T, N > b, F func, const blitz::TinyVector< T, N > & arg_eps, const blitz::TinyVector< T, N > & func_eps, int max_iter) -> blitz::TinyVector< T, N >