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.
fast_subsitute
1 parent 4c06584 commit c00f09fCopy full SHA for c00f09f
test/utils.jl
@@ -153,4 +153,12 @@ end
153
test_nested_derivative = Dx(Dt(Dt(u)))
154
result = diff2term(Symbolics.value(test_nested_derivative))
155
@test typeof(result) === Symbolics.BasicSymbolic{Real}
156
-end
+end
157
+
158
+@testset "`fast_substitute` inside array symbolics" begin
159
+ @variables x y z
160
+ @register_symbolic foo(a::AbstractArray, b)
161
+ ex = foo([x, y], z)
162
+ ex2 = Symbolics.fixpoint_sub(ex, Dict(y => 1.0, z => 2.0))
163
+ @test isequal(ex2, foo([x, 1.0], 2.0))
164
0 commit comments