File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -668,14 +668,14 @@ function (f::Initial)(x)
668
668
iscall (x) && operation (x) isa Initial && return x
669
669
result = if symbolic_type (x) == ArraySymbolic ()
670
670
# create an array for `Initial(array)`
671
- Symbolics. array_term (f, toparam (x) )
671
+ Symbolics. array_term (f, x )
672
672
elseif iscall (x) && operation (x) == getindex
673
673
# instead of `Initial(x[1])` create `Initial(x)[1]`
674
674
# which allows parameter indexing to handle this case automatically.
675
675
arr = arguments (x)[1 ]
676
- term (getindex, f (toparam ( arr) ), arguments (x)[2 : end ]. .. )
676
+ term (getindex, f (arr), arguments (x)[2 : end ]. .. )
677
677
else
678
- term (f, toparam (x) )
678
+ term (f, x )
679
679
end
680
680
# the result should be a parameter
681
681
result = toparam (result)
You can’t perform that action at this time.
0 commit comments