mbsim  4.0.0
MBSim Kernel
MBSim::MultiDimNewtonMethod Class Reference

Newton method for multi-dimensional root-finding. More...

#include <nonlinear_algebra.h>

Public Member Functions

 MultiDimNewtonMethod (Function< fmatvec::Vec(fmatvec::Vec)> *fct_, Function< fmatvec::SqrMat(fmatvec::Vec)> *jac_=nullptr)
 
int getNumberOfIterations () const
 
int getNumberOfMaximalIterations () const
 
int getInfo () const
 
std::vector< double > getNorms ()
 
void setMaximumNumberOfIterations (int itmax_)
 
void setMaximumDampingSteps (int kmax_)
 
void setTolerance (double tol_)
 
void setLinearAlgebra (int linAlg_)
 
fmatvec::Vec solve (const fmatvec::Vec &x)
 solve nonlinear root function More...
 

Private Attributes

Function< fmatvec::Vec(fmatvec::Vec)> * fct
 root function
 
Function< fmatvec::SqrMat(fmatvec::Vec)> * jac
 Jacobian matrix.
 
int itmax
 maximum number of iterations, actual number of iterations, maximum number of damping steps, information about success
 
int iter
 
int kmax
 
int info
 
std::vector< double > norms
 vector of norms for each iteration step
 
double tol
 tolerance
 
int linAlg
 

Detailed Description

Newton method for multi-dimensional root-finding.

Author
Martin Foerg
Date
2009-07-10 some comments (Thorsten Schindler)

Member Function Documentation

◆ solve()

Vec MBSim::MultiDimNewtonMethod::solve ( const fmatvec::Vec &  x)

solve nonlinear root function

Parameters
initialvalue

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