This class is an implementation of CustomFunction that does no computation.
More...
#include <CustomFunction.h>
This class is an implementation of CustomFunction that does no computation.
It just returns 0 for the value and derivatives. This is useful when using the parser to analyze expressions rather than to evaluate them. You can just create PlaceholderFunctions to represent any custom functions that may appear in expressions.
◆ PlaceholderFunction()
PLMD::lepton::PlaceholderFunction::PlaceholderFunction |
( |
int |
numArgs | ) |
|
|
inline |
Create a Placeholder function.
- Parameters
-
numArgs | the number of arguments the function expects |
◆ clone()
◆ evaluate()
double PLMD::lepton::PlaceholderFunction::evaluate |
( |
const double * |
arguments | ) |
const |
|
inlinevirtual |
◆ evaluateDerivative()
double PLMD::lepton::PlaceholderFunction::evaluateDerivative |
( |
const double * |
arguments, |
|
|
const int * |
derivOrder |
|
) |
| const |
|
inlinevirtual |
Evaluate a derivative of the function.
- Parameters
-
arguments | the array of argument values |
derivOrder | an array specifying the number of times the function has been differentiated with respect to each of its arguments. For example, the array {0, 2} indicates a second derivative with respect to the second argument. |
Implements PLMD::lepton::CustomFunction.
◆ getNumArguments()
int PLMD::lepton::PlaceholderFunction::getNumArguments |
( |
| ) |
const |
|
inlinevirtual |
◆ numArgs
int PLMD::lepton::PlaceholderFunction::numArgs |
|
private |
The documentation for this class was generated from the following file: