Lambda wrapper for N-D objective functions (value only). Wraps a lambda/callable into a functor with Value() method.
More...
#include <MathUtils_FunctorVector.hxx>
Lambda wrapper for N-D objective functions (value only). Wraps a lambda/callable into a functor with Value() method.
Usage:
y =
x(1)*
x(1) +
x(2)*
x(2);
return true;
});
GLint GLint GLint GLint GLint x
Definition OpenGl_glext.h:125
VectorLambda(Lambda theLambda)
Constructor from lambda/callable.
Definition MathUtils_FunctorVector.hxx:53
STL input iterator that wraps an OCCT More()/Next() iterator.
Definition NCollection_ForwardRange.hxx:142
VectorResult Powell(Function &theFunc, const math_Vector &theStartingPoint, const Config &theConfig=Config())
Powell's conjugate direction method for N-dimensional minimization. A gradient-free optimization algo...
Definition MathOpt_Powell.hxx:52
- Template Parameters
-
| Lambda | callable type with signature bool(const math_Vector&, double&) |
◆ VectorLambda()
Constructor from lambda/callable.
- Parameters
-
| theLambda | callable with signature bool(const math_Vector&, double&) |
◆ Value()
Evaluates the function at theX.
- Parameters
-
| [in] | theX | input vector |
| [out] | theY | function value f(theX) |
- Returns
- true if evaluation succeeded
The documentation for this class was generated from the following file: