Skip to content

Commit

Permalink
Fix bug in ∞ cholesky (#85)
Browse files Browse the repository at this point in the history
* Fix bug in ∞ cholesky

* v0.5.11
  • Loading branch information
dlfivefifty authored Jul 15, 2021
1 parent f6a6782 commit 8ab7802
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "InfiniteLinearAlgebra"
uuid = "cde9dba0-b1de-11e9-2c62-0bab9446c55c"
version = "0.5.10"
version = "0.5.11"

[deps]
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"
Expand Down
2 changes: 1 addition & 1 deletion src/infcholesky.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function partialcholesky!(F::AdaptiveCholeskyFactors{T,<:BandedMatrix}, n::Int)
factors = view(F.data.data,kr,kr)
banded_chol!(factors, UpperTriangular)
# multiply remaining columns
kr2 = max(n-u+1,1):n
kr2 = max(n-u+1,kr[1]):n
U1 = UpperTriangular(view(F.data.data,kr2,kr2))
B = view(F.data.data,kr2,n+1:n+u)
ldiv!(U1',B)
Expand Down
2 changes: 2 additions & 0 deletions test/test_infcholesky.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@ using InfiniteLinearAlgebra, LinearAlgebra, BandedMatrices, ArrayLayouts, Test
@testset "powers" begin
b = [1; zeros(∞)]
@test cholesky(S^2) \ b qr(S^2) \ b S^2 \ b

@test cholesky(S^2).U[1:100,1:100] cholesky(Symmetric((S^2)[1:100,1:100])).U
end
end

2 comments on commit 8ab7802

@dlfivefifty
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/40943

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.5.11 -m "<description of version>" 8ab78020c44dc625f284c27a86ae2ceb7a1c3249
git push origin v0.5.11

Please sign in to comment.