A class that implements the Newton-Raphson solver to find root of a function. More...
#include <NewtonRaphsonSolver.h>
Public Member Functions | |
NewtonRaphsonSolver (const size_type maxIter, const double tolerance, const double forceTolerance) | |
Constructor. More... | |
~NewtonRaphsonSolver ()=default | |
Default Destructor. More... | |
NewtonRaphsonError | solve (NewtonRaphsonSolverFunction< ValueType > &newtonRaphsonSolverFunction) |
Function that initiates the NR solve. More... | |
ValueType | getResidual () |
Private Attributes | |
size_type | d_maxIter |
double | d_tolerance |
double | d_forceTolerance |
ValueType | d_residual |
bool | d_isSolved |
A class that implements the Newton-Raphson solver to find root of a function.
ValueType | The datatype (float, double, complex<double>, etc.) |
dftefe::linearAlgebra::NewtonRaphsonSolver< ValueType >::NewtonRaphsonSolver | ( | const size_type | maxIter, |
const double | tolerance, | ||
const double | forceTolerance | ||
) |
Constructor.
[in] | maxIter | Maximum number of iterations to allow the solver to iterate. |
[in] | tolerance | Convergence tolerane on the root |
[in] | forceTolerance | See if derivative is cose to zero (extremum). |
|
default |
Default Destructor.
ValueType dftefe::linearAlgebra::NewtonRaphsonSolver< ValueType >::getResidual |
NewtonRaphsonError dftefe::linearAlgebra::NewtonRaphsonSolver< ValueType >::solve | ( | NewtonRaphsonSolverFunction< ValueType > & | newtonRaphsonSolverFunction | ) |
Function that initiates the NR solve.
[in] | newtonRaphsonFunction |
|
private |
|
private |
|
private |
|
private |
|
private |