Learn R Programming

rkeops (version 2.2.2)

get_gradient_formula: Generate formula and input args list for the Gradient of an existing formula

Description

Generate formula and input args list for the Gradient of an existing formula

Usage

get_gradient_formula(formula, args, var, args_info)

Value

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).

Arguments

formula

text string, an operator formula (see Details).

args

vector of text string, formula arguments (see Details).

var

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.

args_info

list, internal (output of rkeops:::parse_args(formula,args))

Author

Ghislain Durif