Heidelberg Educational Numerics Library Version 0.27 (from 15 March 2021)
Public Types | Public Member Functions | List of all members
hdnum::GenericNonlinearProblem< Lambda, Vec > Class Template Reference

A generic problem class that can be set up with a lambda defining F(x)=0. More...

#include <newton.hh>

Public Types

typedef std::size_t size_type
 export size_type
 
typedef Vec::value_type number_type
 export number_type
 

Public Member Functions

 GenericNonlinearProblem (const Lambda &l_, const Vec &x_, number_type eps_=1e-7)
 constructor stores parameter lambda
 
std::size_t size () const
 return number of componentes for the model
 
void F (const Vec &x, Vec &result) const
 model evaluation
 
void F_x (const Vec &x, DenseMatrix< number_type > &result) const
 jacobian evaluation needed for implicit solvers
 

Detailed Description

template<typename Lambda, typename Vec>
class hdnum::GenericNonlinearProblem< Lambda, Vec >

A generic problem class that can be set up with a lambda defining F(x)=0.

Template Parameters
Lambdamapping a Vector to a Vector
Vecthe type for the Vector

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