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.
1 parent 54082de commit 9f4e441Copy full SHA for 9f4e441
test/labelledarrays.jl
@@ -13,14 +13,20 @@ eqs = [D(x) ~ σ*(y-x),
13
D(z) ~ x*y - β*z]
14
15
de = ODESystem(eqs)
16
-f = ODEFunction(de, [x,y,z], [σ,ρ,β])
+ff = ODEFunction(de, [x,y,z], [σ,ρ,β], jac=true)
17
18
a = @SVector [1.0,2.0,3.0]
19
b = SLVector(x=1.0,y=2.0,z=3.0)
20
c = [1.0,2.0,3.0]
21
p = SLVector(σ=10.0,ρ=26.0,β=8/3)
22
-@test f(a,p,0.0) isa SVector
23
-@test typeof(f(b,p,0.0)) <: SLArray
24
-@test f(c,p,0.0) isa Vector
25
-@test f(a,p,0.0) == f(b,p,0.0)
26
-@test f(a,p,0.0) == f(c,p,0.0)
+@test ff(a,p,0.0) isa SVector
+@test typeof(ff(b,p,0.0)) <: SLArray
+@test ff(c,p,0.0) isa Vector
+@test ff(a,p,0.0) == ff(b,p,0.0)
+@test ff(a,p,0.0) == ff(c,p,0.0)
27
+
28
+@test ff.jac(a,p,0.0) isa SMatrix
29
+@test typeof(ff.jac(b,p,0.0)) <: SMatrix
30
+@test ff.jac(c,p,0.0) isa Matrix
31
+@test ff.jac(a,p,0.0) == ff.jac(b,p,0.0)
32
+@test ff.jac(a,p,0.0) == ff.jac(c,p,0.0)
0 commit comments