Lambda wrapper for scalar functions with value only. Wraps a lambda/callable into a functor with Value() method.
More...
#include <MathUtils_FunctorScalar.hxx>
Lambda wrapper for scalar functions with value only. Wraps a lambda/callable into a functor with Value() method.
Usage:
return true;
});
ScalarLambda(Lambda theLambda)
Constructor from lambda/callable.
Definition MathUtils_FunctorScalar.hxx:52
STL input iterator that wraps an OCCT More()/Next() iterator.
Definition NCollection_ForwardRange.hxx:142
MathUtils::ScalarResult Brent(Function &theFunc, double theLower, double theUpper, const MathUtils::Config &theConfig=MathUtils::Config())
Brent's method for root finding. Combines bisection, secant, and inverse quadratic interpolation....
Definition MathRoot_Brent.hxx:45
- Template Parameters
-
| Lambda | callable type with signature bool(double, double&) |
◆ ScalarLambda()
Constructor from lambda/callable.
- Parameters
-
| theLambda | callable with signature bool(double theX, double& theY) |
◆ Value()
Evaluates the function at theX.
- Parameters
-
| [in] | theX | input value |
| [out] | theY | function value f(theX) |
- Returns
- true if evaluation succeeded
The documentation for this class was generated from the following file: