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.
2 parents 635a957 + 541c606 commit 0dfa176Copy full SHA for 0dfa176
src/chol.jl
@@ -4,7 +4,10 @@ chol_lower(a::Cholesky) = a.uplo === 'L' ? a.L : a.U'
4
chol_upper(a::Cholesky) = a.uplo === 'U' ? a.U : a.L'
5
6
# For a dense Matrix, the following allows us to avoid the Adjoint wrapper:
7
-chol_lower(a::Matrix) = cholesky(Hermitian(a, :L)).L
+chol_lower(a::Matrix) = cholesky(Symmetric(a, :L)).L
8
+# NOTE: Formally, the line above should use Hermitian() instead of Symmetric(),
9
+# but this currently has an AutoDiff issue in Zygote.jl, and PDMat is
10
+# type-restricted to be Real, so they are equivalent.
11
12
if HAVE_CHOLMOD
13
CholTypeSparse{T} = SuiteSparse.CHOLMOD.Factor{T}
0 commit comments