AtomFuncDerivative¶
-
public final class
AtomFuncDerivative
¶ Object that manages the derivatives of a black-box routine, intrinsic or external or other. For each routine, one such object is built from a specification which is an IL Tree, as described in function incorporateNewAtomFunc(Tree, SymbolTable).
Fields¶
Constructors¶
Methods¶
getMetavarsFromPattern¶
incorporateNewAtomFunc¶
-
public static void
incorporateNewAtomFunc
(Tree defTree, Unit functionUnit)¶ Incorporates the definition of derivatives of an atomic function into the properties attached to that atomic function in the “symbolTable”. Assumes that defTree is an IL Tree of the shape: binary(call(none(), ident “atomicFunctionName”, expressions(containing <e1>,<e2>,…)) <factor>, expressions(binary(<e1>,none(),<e’1>), binary(<e2>,none(),<e’2>), …)) Where the <ei> are metavariables (op_metavar) that get instantiated during the pattern-match between the origPattern and the actual call, and the <e’i> are the corresponding partial derivatives wrt <ei>. Of course, each <e’i> may use some or all of the <ej>.