HMLP: High-performance Machine Learning Primitives
hmlp::root::Newton< FUNC, T > Class Template Reference

#include <root.hpp>

Inheritance diagram for hmlp::root::Newton< FUNC, T >:
hmlp::root::RootFinderBase< T >

Public Member Functions

 Newton (FUNC *func)
 
std::pair< T, T > Initialize ()
 
std::pair< T, T > Iterate ()
 
- Public Member Functions inherited from hmlp::root::RootFinderBase< T >
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

- Public Attributes inherited from hmlp::root::RootFinderBase< T >
x = 0.0
 
x_lower = 0.0
 
x_upper = 0.0
 

Detailed Description

template<typename FUNC, typename T>
class hmlp::root::Newton< FUNC, T >

end class Bisection

Member Function Documentation

template<typename FUNC , typename T >
std::pair<T, T> hmlp::root::Newton< FUNC, T >::Initialize ( )
inlinevirtual

initialize the guess

Implements hmlp::root::RootFinderBase< T >.

template<typename FUNC , typename T >
std::pair<T, T> hmlp::root::Newton< FUNC, T >::Iterate ( )
inlinevirtual

gradient decent

Implements hmlp::root::RootFinderBase< T >.


The documentation for this class was generated from the following file: