Skip to content

Commit

Permalink
Merge pull request #36 from dkarrasch/chol
Browse files Browse the repository at this point in the history
Remove pivot argument w/ default value in cholesky!
  • Loading branch information
joshday authored Dec 13, 2021
2 parents d56bb5d + 28e356a commit a410103
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "SparseRegression"
uuid = "ca6142a6-a6a7-57f5-b674-4a8484b22e92"
version = "0.2.0"
version = "0.2.1"

[deps]
LearnBase = "7f8f8fb0-2700-5f03-b4bd-41f8cfc144b6"
Expand Down
7 changes: 4 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
environment:
matrix:
- julia_version: 1.0
- julia_version: 1.1
- julia_version: 1.2
- julia_version: 1.6
- julia_version: 1
- julia_version: nightly

platform:
Expand Down Expand Up @@ -32,4 +33,4 @@ build_script:

test_script:
- echo "%JL_TEST_SCRIPT%"
- C:\julia\bin\julia -e "%JL_TEST_SCRIPT%"
- C:\julia\bin\julia -e "%JL_TEST_SCRIPT%"
2 changes: 1 addition & 1 deletion src/algorithms/algorithms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,6 @@ Base.show(io::IO, a::LinRegCholesky) = print(io, "LinRegCholesky")
function update!(o::SModel, a::LinRegCholesky)
copyto!(a.S, a.A)
add_ridge!(o, a)
cholesky!(Symmetric(a.S), Val(false))
cholesky!(Symmetric(a.S))
@views o.β[:] = UpperTriangular(a.S[1:end-1, 1:end-1]) \ a.S[1:end-1, end]
end

0 comments on commit a410103

Please sign in to comment.