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

Example class for a nonlinear model F(x) = 0;. More...

#include <newton.hh>

Public Types

typedef std::size_t size_type
 export size_type
 
typedef N number_type
 export number_type
 

Public Member Functions

 SquareRootProblem (number_type a_)
 constructor stores parameter lambda
 
std::size_t size () const
 return number of componentes for the model
 
void F (const Vector< N > &x, Vector< N > &result) const
 model evaluation
 
void F_x (const Vector< N > &x, DenseMatrix< N > &result) const
 jacobian evaluation needed for implicit solvers
 

Detailed Description

template<class N>
class hdnum::SquareRootProblem< N >

Example class for a nonlinear model F(x) = 0;.

This example solves F(x) = x*x - a = 0

Template Parameters
Na type representing x and F components

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