Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit 1c226f6

Browse files
fix tests
1 parent fac7da0 commit 1c226f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_jaches_products.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ function h(dy,x)
1818
FiniteDiff.finite_difference_gradient!(dy,g,x)
1919
end
2020

21-
cache1 = ForwardDiff.Dual{typeof(ForwardDiff.Tag(SparseDiffTools.DeivVecTag,eltype(x))),eltype(x),1}.(x, ForwardDiff.Partials.(Tuple.(v)))
22-
cache2 = ForwardDiff.Dual{typeof(ForwardDiff.Tag(SparseDiffTools.DeivVecTag,eltype(x))),eltype(x),1}.(x, ForwardDiff.Partials.(Tuple.(v)))
21+
cache1 = ForwardDiff.Dual{typeof(ForwardDiff.Tag(SparseDiffTools.DeivVecTag(),eltype(x))),eltype(x),1}.(x, ForwardDiff.Partials.(Tuple.(v)))
22+
cache2 = ForwardDiff.Dual{typeof(ForwardDiff.Tag(SparseDiffTools.DeivVecTag(),eltype(x))),eltype(x),1}.(x, ForwardDiff.Partials.(Tuple.(v)))
2323
@test num_jacvec!(dy, f, x, v) ForwardDiff.jacobian(f,similar(x),x)*v rtol=1e-6
2424
@test num_jacvec!(dy, f, x, v, similar(v), similar(v)) ForwardDiff.jacobian(f,similar(x),x)*v rtol=1e-6
2525
@test num_jacvec(f, x, v) ForwardDiff.jacobian(f,similar(x),x)*v rtol=1e-6

0 commit comments

Comments
 (0)