HMLP: High-performance Machine Learning Primitives
|
This is not thread safe. More...
#include <root.hpp>
Public Member Functions | |
Bisection (FUNC *func) | |
std::pair< T, T > | Initialize () |
std::pair< T, T > | Iterate () |
![]() | |
virtual std::pair< T, T > | Solve (T user_x_lower, T user_x_upper) |
void | SetupTerminationCriteria (size_t niter, T tol) |
bool | ReachMaximumIteration (size_t iter) |
bool | Terminate (size_t iter, std::pair< T, T > &now, std::pair< T, T > &previous) |
Additional Inherited Members | |
![]() | |
T | x = 0.0 |
T | x_lower = 0.0 |
T | x_upper = 0.0 |
This is not thread safe.
|
inlinevirtual |
evaluate two end points
must be in different signs
initialize the guess
Implements hmlp::root::RootFinderBase< T >.
|
inlinevirtual |
bisection
discard the half of the interval which doesn't contain the root.
Implements hmlp::root::RootFinderBase< T >.