Lambda wrapper for scalar functions with value only. Wraps a lambda/callable into a functor with Value() method.
More...
#include <MathUtils_FunctorScalar.hxx>
|
| | ScalarLambda (Lambda theLambda) |
| | Constructor from lambda/callable.
|
| bool | Value (double theX, double &theY) const |
| | Evaluates the function at theX.
|
template<typename Lambda>
class MathUtils::ScalarLambda< Lambda >
Lambda wrapper for scalar functions with value only. Wraps a lambda/callable into a functor with Value() method.
Usage:
return true;
});
GLint GLint GLint GLint GLint x
Definition OpenGl_glext.h:125
GLint GLint GLint GLint GLint GLint y
Definition OpenGl_glext.h:126
ScalarLambda(Lambda theLambda)
Constructor from lambda/callable.
Definition MathUtils_FunctorScalar.hxx:52
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()
template<typename Lambda>
Constructor from lambda/callable.
- Parameters
-
| theLambda | callable with signature bool(double theX, double& theY) |
◆ Value()
template<typename Lambda>
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: