Abstract class to define by user specified function. More...
#include <MyNLAS.h>
Public Member Functions | |
MyNLAS () | |
Default Constructor. | |
MyNLAS (const Mesh &mesh) | |
Constructor using mesh instance. More... | |
virtual | ~MyNLAS () |
Destructor. | |
virtual real_t | Function (const Vect< real_t > &x, int i=1)=0 |
Virtual member function to define nonlinear function to zeroe. More... | |
virtual real_t | Gradient (const Vect< real_t > &x, int i=1, int j=1) |
Virtual member function to define partial derivatives of function. More... | |
Detailed Description
Abstract class to define by user specified function.
The user has to implement a class that inherits from the present one where the virtual functions are implemented.
- Copyright
- GNU Lesser Public License
Constructor & Destructor Documentation
◆ MyNLAS()
Constructor using mesh instance.
- Parameters
-
mesh Reference to Mesh instance
Member Function Documentation
◆ Function()
Virtual member function to define nonlinear function to zeroe.
- Parameters
-
[in] x Vector of variables [in] i component of function to define [Default: 1
].
- Returns
- Value of function
- Warning
- The component must not be larger than vector size
◆ Gradient()
Virtual member function to define partial derivatives of function.
- Parameters
-
[in] x Vector of variables [in] i Function component [Default: 1
][in] j Index of partial derivative [Default: 1
]
- Returns
- Value of partial derivative