Skip to content

Commit 08c949f

Browse files
Merge branch 'df' into inplace
2 parents e2c677e + 479b30b commit 08c949f

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

test/finitedifftests.jl

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -108,29 +108,6 @@ epsilon = zeros(x)
108108
@test err_func(DiffEqDiffTools.finite_difference_jacobian!(J, f, x, Val{:complex}, Val{:Real}, Val{:Default}, y, epsilon), J_ref) < 1e-14
109109
end
110110

111-
# Jacobian tests w/ derivatives (real-valued callables)
112-
@time @testset "Jacobian StridedArray real-valued derivative tests" begin
113-
DiffEqDiffTools.finite_difference_jacobian!(J, df, f, x, Val{:forward})
114-
@show df, df_ref
115-
@test err_func(df, df_ref) < 1e-4
116-
DiffEqDiffTools.finite_difference_jacobian!(J, df, f, x, Val{:central})
117-
@test err_func(df, df_ref) < 1e-8
118-
DiffEqDiffTools.finite_difference_jacobian!(J, df, f, x, Val{:complex})
119-
@test err_func(df, df_ref) < 1e-15
120-
DiffEqDiffTools.finite_difference_jacobian!(J, df, f, x, Val{:forward}, Val{:Real}, Val{:Default}, y)
121-
@test err_func(df, df_ref) < 1e-4
122-
DiffEqDiffTools.finite_difference_jacobian!(J, df, f, x, Val{:central}, Val{:Real}, Val{:Default}, y)
123-
@test err_func(df, df_ref) < 1e-8
124-
DiffEqDiffTools.finite_difference_jacobian!(J, df, f, x, Val{:complex}, Val{:Real}, Val{:Default}, y)
125-
@test err_func(df, df_ref) < 1e-15
126-
DiffEqDiffTools.finite_difference_jacobian!(J, df, f, x, Val{:forward}, Val{:Real}, Val{:Default}, y, epsilon)
127-
@test err_func(df, df_ref) < 1e-4
128-
DiffEqDiffTools.finite_difference_jacobian!(J, df, f, x, Val{:central}, Val{:Real}, Val{:Default}, y, epsilon)
129-
@test err_func(df, df_ref) < 1e-8
130-
DiffEqDiffTools.finite_difference_jacobian!(J, df, f, x, Val{:complex}, Val{:Real}, Val{:Default}, y, epsilon)
131-
@test err_func(df, df_ref) < 1e-15
132-
end
133-
134111
function f(x)
135112
fvec = zeros(x)
136113
fvec[1] = (im*x[1]+3)*(x[2]^3-7)+18
@@ -166,19 +143,4 @@ epsilon = zeros(real.(x))
166143
@test err_func(DiffEqDiffTools.finite_difference_jacobian!(J, f, x, Val{:central}, Val{:Complex}, Val{:Default}, y, epsilon), J_ref) < 1e-8
167144
end
168145

169-
# Jacobian tests w/ derivatives (complex-valued callables)
170-
@time @testset "Jacobian StridedArray complex-valued derivative tests" begin
171-
DiffEqDiffTools.finite_difference_jacobian!(J, df, f, x, Val{:forward}, Val{:Complex}, Val{:Default})
172-
@test err_func(df, df_ref) < 1e-4
173-
DiffEqDiffTools.finite_difference_jacobian!(J, df, f, x, Val{:central}, Val{:Complex}, Val{:Default})
174-
@test err_func(df, df_ref) < 1e-8
175-
DiffEqDiffTools.finite_difference_jacobian!(J, df, f, x, Val{:forward}, Val{:Complex}, Val{:Default}, y)
176-
@test err_func(df, df_ref) < 1e-4
177-
DiffEqDiffTools.finite_difference_jacobian!(J, df, f, x, Val{:central}, Val{:Complex}, Val{:Default}, y)
178-
@test err_func(df, df_ref) < 1e-8
179-
DiffEqDiffTools.finite_difference_jacobian!(J, df, f, x, Val{:forward}, Val{:Complex}, Val{:Default}, y, epsilon)
180-
@test err_func(df, df_ref) < 1e-4
181-
DiffEqDiffTools.finite_difference_jacobian!(J, df, f, x, Val{:central}, Val{:Complex}, Val{:Default}, y, epsilon)
182-
@test err_func(df, df_ref) < 1e-8
183-
end
184146
# StridedArray tests end here

0 commit comments

Comments
 (0)