Skip to content

Commit 190e85f

Browse files
longemen3000KristofferC
authored andcommitted
Update HessianTest.jl
1 parent bade2d2 commit 190e85f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/HessianTest.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ end
168168
g = r -> (r[1]^2 - 3) * (r[2]^2 - 2)
169169
x = SA_F32[0.5, 2.7]
170170
hres = DiffResults.HessianResult(x)
171+
ForwardDiff.hessian!(hres, g, x)
171172
@test @allocated(ForwardDiff.hessian!(hres, g, x)) == 0
172173
end
173174

0 commit comments

Comments
 (0)