public class FunctionParser
extends java.lang.Object
FunctionParser takes a BackendContext instance based on which
it builds Function implementation instances, usually by parsing Strings.
The information needed for parsing is being provided by the Operations within the formerly
mentioned BackendContext...| Constructor and Description |
|---|
FunctionParser(BackendContext context) |
| Modifier and Type | Method and Description |
|---|---|
Function |
parse(Operation operation,
int numberOfArgs,
boolean doAD) |
Function |
parse(java.lang.String expression,
boolean doAD) |
public FunctionParser(BackendContext context)
context - The BackendContext which will be used as a basis to parse new Function
implementation instance from provided String expressions.public Function parse(Operation operation, int numberOfArgs, boolean doAD)
operation - The Operation based on which the Function ought to be created.numberOfArgs - The number of arguments the produced Function ought to have.doAD - The flag determining if the Function built by this method should perform autograd or not.Function implementation instance which satisfied the supplied parameters.public Function parse(java.lang.String expression, boolean doAD)
expression - contains the function as String provided by the userdoAD - is used to turn autograd on or off for this function