heyoka.var_args

Contents

heyoka.var_args#

class heyoka.var_args#

Enum for selecting variational arguments.

Added in version 5.0.0.

Values of this enum can be used in the constructor of var_ode_sys() to select the arguments with respect to which the variational equations will be formulated.

The enumerators can be combined with the logical OR | operator.

Examples:
>>> from heyoka import var_args
>>> va = var_args.vars | var_args.params # Select differentiation wrt all initial conditions and parameters
>>> var_args.vars | var_args.params | var_args.time == var_args.all
True

Members:

vars : Differentiate with respect to the initial conditions of all state variables.

params : Differentiate with respect to all runtime parameters.

time : Differentiate with respect to the initial integration time.

all : Differentiate with respect to the initial conditions of all state variables, all runtime parameters and the initial integration time.