@@ -10,7 +10,7 @@ using Test, LinearMaps, LinearAlgebra, SparseArrays, IterativeSolvers
10
10
# Cholesky
11
11
@test A \ b ≈ InverseMap (cholesky (A)) * b
12
12
# Specify solver
13
- @test A \ b ≈ InverseMap (A; solver= IterativeSolvers. cg!) * b
13
+ @test A \ b ≈ InverseMap (A; solver= IterativeSolvers. cg!) * b atol = 1e-8
14
14
# Composition with other maps
15
15
@test A \ B * b ≈ InverseMap (lu (A)) * B * b
16
16
# Composition: make sure solvers called with vector B * b and not matrix B
@@ -29,7 +29,7 @@ using Test, LinearMaps, LinearAlgebra, SparseArrays, IterativeSolvers
29
29
my_ldiv! = (y, A, x) -> copy! (y, A \ x)
30
30
@test A \ b ≈ InverseMap (cholesky (A); solver= my_ldiv!) * b
31
31
# Specify solver
32
- @test A \ b ≈ InverseMap (A; solver= IterativeSolvers. cg!) * b
32
+ @test A \ b ≈ InverseMap (A; solver= IterativeSolvers. cg!) * b atol = 1e-8
33
33
# Composition with other maps
34
34
@test A \ (B * b) ≈ InverseMap (lu (A)) * B * b
35
35
# Composition: make sure solver is called with vector B * b and not matrix B
@@ -59,5 +59,5 @@ using Test, LinearMaps, LinearAlgebra, SparseArrays, IterativeSolvers
59
59
U = IterativeSolvers. cg (M, F - B * P)
60
60
61
61
# Solve using standard method and compare
62
- @test [M B; B' 0 I] \ [F; G] ≈ [U; P]
62
+ @test [M B; B' 0 I] \ [F; G] ≈ [U; P] atol = 1e-8
63
63
end
0 commit comments