DiffConstants¶
-
public final class
DiffConstants¶ Constants used during differentiation.
Fields¶
ALT_DIFF_VAR¶
-
protected static final int
ALT_DIFF_VAR¶ The index where we store an alternate diff name of a given variable. For instance for v, the std diff var may be vb, and me may need another diff var vb0 for instance for storing a previous value of vb…
INCREMENT_VARIABLE¶
-
protected static final int
INCREMENT_VARIABLE¶ Constants for the “kind” of differentiated statement.
INEXPR¶
-
protected static final int
INEXPR¶ The possible values for the (stacked) contexts in which variables must be differentiated. May be INEXPR (default), INCALL, INHEADER, NODIMDECORATION
TANGENT_MODE¶
-
protected static final int
TANGENT_MODE¶ The current mode of differentiation for the current unit. - in TANGENT_MODE we generate procedure FOO_D. - in ANY_MODE translation units will have _D and/or _B according to the main differentiation mode . - in ADJOINT_SPLIT_MODE we generate the two procedures FOO_FWD and FOO_BWD. - in ADJOINT_MODE we generate procedure FOO_B. ADJOINT_MODE also includes “CONTEXT” mode, where we only build a context from which to call the differentiated code.