Nonlinear system functor: F(x) = [f1(x), f2(x), ..., fn(x)]. Lambda wrapper for systems of nonlinear equations.
More...
#include <MathUtils_FunctorVector.hxx>
Nonlinear system functor: F(x) = [f1(x), f2(x), ..., fn(x)]. Lambda wrapper for systems of nonlinear equations.
Usage:
f(1) =
x(1)*
x(1) +
x(2)*
x(2) - 1.0;
return true;
});
GLint GLint GLint GLint GLint x
Definition OpenGl_glext.h:125
GLfloat f
Definition OpenGl_glext.h:2667
SystemLambda(Lambda theLambda, int theNbEquations)
Constructor from lambda.
Definition MathUtils_FunctorVector.hxx:723
STL input iterator that wraps an OCCT More()/Next() iterator.
Definition NCollection_ForwardRange.hxx:142
VectorResult Newton(FuncSetType &theFunc, const math_Vector &theStart, const math_Vector &theTolX, double theTolF, size_t theMaxIter=100)
Newton-Raphson method for solving systems of nonlinear equations.
Definition MathSys_Newton.hxx:41
- Template Parameters
-
| Lambda | callable with signature bool(const math_Vector&, math_Vector&) |
◆ SystemLambda()
Constructor from lambda.
- Parameters
-
| theLambda | callable for system evaluation |
| theNbEquations | number of equations in the system |
◆ NbEquations()
Returns the number of equations.
- Returns
- number of equations
◆ Value()
Evaluates the system F(x).
- Parameters
-
| [in] | theX | input vector |
| [out] | theF | system values |
- Returns
- true if evaluation succeeded
The documentation for this class was generated from the following file: