Skip to content

Commit

Permalink
reduced accuracy requirement for cg test
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianAment committed Jan 17, 2022
1 parent 5007cc3 commit e220d55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ for n in sizes
@test StatsBase.levinson(As, xs) Ms \ xs # this should be exact to numerical precision given good conditioning
@test Matrix(As') Ms'
@test Matrix(transpose(As)) transpose(Ms)
@test ldiv!(zero(xs), As, xs, isposdef = true) As \ xs # test cg-based solve
y_cg = ldiv!(zero(xs), As, xs, isposdef = true)
@test isapprox_helper(y_cg, As \ xs) # testing cg-based solve

Ab = SymmetricToeplitz(rs1) # this is still positive definite
Mb = Matrix(Ab)
Expand Down

0 comments on commit e220d55

Please sign in to comment.