Skip to content

Commit 5a77e54

Browse files
author
Pawel Latawiec
committed
Fix testing
1 parent d97a1b4 commit 5a77e54

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/lalqmr.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ end
5757
# Guaranteed to create blocks during Lanczos process
5858
# This satisfies the condition that in the V-W sequence, the first
5959
# iterates are orthogonal: <Av - v<A, v>, Atv - v<At, v>> under transpose inner product
60+
# These do _not_ work for regular qmr
6061
dl = fill(one(T), n-1)
6162
du = fill(one(T), n-1)
6263
d = fill(one(T), n)
@@ -72,9 +73,9 @@ end
7273
end
7374

7475
@testset "Linear operator defined as a function" begin
75-
A = LinearMap(cumsum!, 100; ismutating=true)
76+
A = LinearMap(identity, identity, 100; ismutating=false)
7677
b = rand(100)
77-
reltol = 1e-5
78+
reltol = 1e-6
7879

7980
x = lalqmr(A, b; reltol=reltol, maxiter=2000)
8081
@test norm(A * x - b) / norm(b) reltol

0 commit comments

Comments
 (0)