Skip to content

Commit

Permalink
use :L for Hermitian in cholesky_lower
Browse files Browse the repository at this point in the history
  • Loading branch information
torfjelde committed Aug 12, 2023
1 parent cec71b4 commit 51693bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ rather than `LowerTriangular`.
This is a thin wrapper around `cholesky(Hermitian(X)).L`
that returns a `Matrix` rather than `LowerTriangular`.
"""
cholesky_lower(X::AbstractMatrix) = lower_triangular(parent(cholesky(Hermitian(X)).L))
cholesky_lower(X::AbstractMatrix) = lower_triangular(parent(cholesky(Hermitian(X, :L)).L))
cholesky_lower(X::Cholesky) = X.L

"""
Expand Down

0 comments on commit 51693bb

Please sign in to comment.