We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
cholesky_{upper,lower}
1 parent 9738946 commit a6d08f4Copy full SHA for a6d08f4
src/utils.jl
@@ -31,6 +31,7 @@ rather than `LowerTriangular`.
31
that returns a `Matrix` rather than `LowerTriangular`.
32
"""
33
cholesky_lower(X::AbstractMatrix) = lower_triangular(parent(cholesky(Hermitian(X, :L)).L))
34
+cholesky_lower(X::PDMat) = X.chol.L
35
cholesky_lower(X::Cholesky) = X.L
36
37
@@ -44,6 +45,7 @@ rather than `UpperTriangular`.
44
45
that returns a `Matrix` rather than `UpperTriangular`.
46
47
cholesky_upper(X::AbstractMatrix) = upper_triangular(parent(cholesky(Hermitian(X)).U))
48
+cholesky_upper(X::PDMat) = X.chol.U
49
cholesky_upper(X::Cholesky) = X.U
50
51
0 commit comments