We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
distribute_shift
Sample
Hold
1 parent aaf7c57 commit da27d69Copy full SHA for da27d69
src/structural_transformation/utils.jl
@@ -593,7 +593,7 @@ end
593
function _distribute_shift(expr, shift)
594
if iscall(expr)
595
op = operation(expr)
596
- (op isa Pre || op isa Initial) && return expr
+ (op isa Union{Pre, Initial, Sample, Hold}) && return expr
597
args = arguments(expr)
598
599
if ModelingToolkit.isvariable(expr) && operation(expr) !== getindex
0 commit comments