You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/systems/diffeqs/odesystem.jl
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -476,6 +476,8 @@ Generates a function that computes the observed value(s) `ts` in the system `sys
476
476
- `throw = true` if true, throw an error when generating a function for `ts` that reference variables that do not exist.
477
477
- `mkarray`: only used if the output is an array (that is, `!isscalar(ts)` and `ts` is not a tuple, in which case the result will always be a tuple). Called as `mkarray(ts, output_type)` where `ts` are the expressions to put in the array and `output_type` is the argument of the same name passed to build_explicit_observed_function.
478
478
- `cse = true`: Whether to use Common Subexpression Elimination (CSE) to generate a more efficient function.
479
+
- `wrap_delays = is_dde(sys)`: Whether to add an argument for the history function and use
480
+
it to calculate all delayed variables.
479
481
480
482
## Returns
481
483
@@ -514,7 +516,8 @@ function build_explicit_observed_function(sys, ts;
514
516
op = Operator,
515
517
throw =true,
516
518
cse =true,
517
-
mkarray =nothing)
519
+
mkarray =nothing,
520
+
wrap_delays =is_dde(sys))
518
521
is_tuple = ts isa Tuple
519
522
if is_tuple
520
523
ts =collect(ts)
@@ -600,14 +603,15 @@ function build_explicit_observed_function(sys, ts;
0 commit comments