votca 2024.2-dev
|
Newton Rapson rootfinder for 1d functions. More...
#include <newton_rapson.h>
Public Types | |
enum | Errors { success , smalldenom , notconverged } |
Public Member Functions | |
NewtonRapson (Index max_iterations, double tolerance) | |
NewtonRapson (Index max_iterations, double tolerance, double alpha) | |
double | FindRoot (const Func &f, double x0) |
Errors | getInfo () const |
Index | getIterations () const |
Private Attributes | |
Errors | info_ = Errors::notconverged |
Index | max_iterations_ |
Index | iter_ |
double | tolerance_ |
double | alpha_ = 1.0 |
Newton Rapson rootfinder for 1d functions.
https://en.wikipedia.org/wiki/Newton%27s_method#Modified_Newton_methods
Definition at line 40 of file newton_rapson.h.
enum votca::xtp::NewtonRapson::Errors |
Enumerator | |
---|---|
success | |
smalldenom | |
notconverged |
Definition at line 42 of file newton_rapson.h.
|
inline |
Definition at line 43 of file newton_rapson.h.
|
inline |
Definition at line 46 of file newton_rapson.h.
|
inline |
Definition at line 49 of file newton_rapson.h.
|
inline |
Definition at line 72 of file newton_rapson.h.
|
inline |
Definition at line 73 of file newton_rapson.h.
|
private |
Definition at line 80 of file newton_rapson.h.
|
private |
Definition at line 76 of file newton_rapson.h.
|
private |
Definition at line 78 of file newton_rapson.h.
|
private |
Definition at line 77 of file newton_rapson.h.
|
private |
Definition at line 79 of file newton_rapson.h.