@@ -64,9 +64,9 @@ cache2 = ForwardDiff.Dual{typeof(ForwardDiff.Tag(SparseDiffTools.DeivVecTag(), e
64
64
@test autonum_hesvec! (dy, g, x, v, cache1, cache2)≈ ForwardDiff. hessian (g, x) * v rtol= 1e-2
65
65
@test autonum_hesvec (g, x, v)≈ ForwardDiff. hessian (g, x) * v
66
66
67
- @test numback_hesvec! (dy, g, x, v)≈ ForwardDiff. hessian (g, x) * v rtol = 1e-6
68
- @test numback_hesvec! (dy, g, x, v, similar (v), similar (v))≈ ForwardDiff. hessian (g, x) * v rtol = 1e-6
69
- @test numback_hesvec (g, x, v)≈ ForwardDiff. hessian (g, x) * v rtol = 1e-6
67
+ @test numback_hesvec! (dy, g, x, v)≈ ForwardDiff. hessian (g, x) * v
68
+ @test numback_hesvec! (dy, g, x, v, similar (v), similar (v))≈ ForwardDiff. hessian (g, x) * v
69
+ @test numback_hesvec (g, x, v)≈ ForwardDiff. hessian (g, x) * v
70
70
71
71
cache3 = ForwardDiff. Dual{typeof (ForwardDiff. Tag (Nothing, eltype (x))), eltype (x), 1
72
72
}. (x, ForwardDiff. Partials .(tuple .(v)))
@@ -181,7 +181,7 @@ update_coefficients!(g, x, 1.0, 1.0)
181
181
update_coefficients! (h, x, 1.0 , 1.0 )
182
182
@test L * x ≈ autonum_hesvec (g, x, x)
183
183
@test L * v ≈ numauto_hesvec (g, x, v)
184
- @test mul! (dy, L, v)≈ numauto_hesvec (g, x, v) rtol = 1e-8
184
+ @test mul! (dy, L, v)≈ numauto_hesvec (g, x, v)
185
185
dy= rand (N);_dy= copy (dy);@test mul! (dy,L,v,a,b)≈ a* numauto_hesvec (g,x,v)+ b* _dy
186
186
for op in (L, g, h) update_coefficients! (op, v, 3.0 , 4.0 ) end
187
187
@test mul! (dy, L, x)≈ numauto_hesvec (g, v, x)
0 commit comments