NuTo
Numerics Tool
Classes | Namespaces | Functions
NewtonRaphson.h File Reference
#include <Eigen/Sparse>
#include "nuto/base/Exception.h"
#include "nuto/math/LineSearch.h"

Go to the source code of this file.

Classes

class  NuTo::NewtonRaphson::NoConvergence
 custom exception for the newton algorithm More...
 
struct  NuTo::NewtonRaphson::DoubleSolver
 "Solver" for scalar values More...
 
struct  NuTo::NewtonRaphson::Problem< TR, TDR, TNorm, TTol, TInfo >
 problem definition More...
 

Namespaces

 NuTo
 
 NuTo::NewtonRaphson
 

Functions

template<typename TR , typename TDR , typename TNorm , typename TTol , typename TInfo = VoidInfo>
auto NuTo::NewtonRaphson::DefineProblem (TR residual, TDR derivative, TNorm norm, TTol tolerance, TInfo info=VoidInfo())
 defines the problem, basically just to enable automatic template deduction. More...
 
template<typename TNonlinearProblem , typename TX , typename TSolver , typename TLineSearchAlgorithm = NoLineSearch>
auto NuTo::NewtonRaphson::Solve (TNonlinearProblem &&problem, TX &&x0, TSolver &&solver, int maxIterations=20, TLineSearchAlgorithm &&lineSearch=NoLineSearch(), int *numIterations=nullptr)
 solves the Problem using the newton raphson iteration with linesearch More...