Skip to content

Commit

Permalink
Merge pull request #17199 from JuliaLang/sb/cholesky-downdate
Browse files Browse the repository at this point in the history
Fixes 2 issues with the Cholesky update/downdate tests
  • Loading branch information
andreasnoack authored Jul 1, 2016
2 parents b2b680b + 6332269 commit 8ecd657
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/linalg/cholesky.jl
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,12 @@ end
let A = complex(randn(10,5), randn(10, 5)), v = complex(randn(5), randn(5))
for uplo in (:U, :L)
AcA = A'A
BcB = AcA + v*v'
BcB = (BcB + BcB')/2
F = cholfact(AcA, uplo)
@test LinAlg.lowrankupdate(F, v)[uplo] cholfact(AcA + v*v')[uplo]
@test LinAlg.lowrankdowndate(F, v)[uplo] cholfact(AcA - v*v')[uplo]
G = cholfact(BcB, uplo)
@test LinAlg.lowrankupdate(F, v)[uplo] G[uplo]
@test LinAlg.lowrankdowndate(G, v)[uplo] F[uplo]
end
end

Expand Down

0 comments on commit 8ecd657

Please sign in to comment.