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

Commit 4546782

Browse files
fix tests
1 parent 2a2e77d commit 4546782

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/test_jaches_products.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ L.u .= v
8787
out = similar(v)
8888
gmres!(out, L, v)
8989

90+
x = rand(300)
91+
v = rand(300)
9092
L = HesVecGrad(g,x,autodiff=false)
9193
@test L*x num_hesvec(f, x, x)
9294
@test L*v num_hesvec(f, x, v)
@@ -100,3 +102,7 @@ L = HesVecGrad(g,x)
100102
@test mul!(du,L,v) numauto_hesvec(f, x, v) rtol=1e-8
101103
L.u .= v
102104
@test mul!(du,L,v) numauto_hesvec(f, v, v) rtol=1e-8
105+
106+
### Integration test with IterativeSolvers
107+
out = similar(v)
108+
gmres!(out, L, v)

0 commit comments

Comments
 (0)