Generate formula and input args list for the Gradient of an existing formula
get_gradient_formula(formula, args, var, args_info)
a list with the following element:
new_formula
: character string corresponding to the Gradient formula.
new_args
: corresponding enriched arguments (see keops_grad()
for more details).
text string, an operator formula (see Details).
vector of text string, formula arguments (see Details).
a text string or an integer number indicating regarding to which variable/parameter (given by name or by position starting at 0) the gradient of the formula should be computed.
list, internal (output of
rkeops:::parse_args(formula,args)
)
Ghislain Durif