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.
1 parent 1ed64a4 commit 3f37f86Copy full SHA for 3f37f86
src/chol.jl
@@ -2,8 +2,8 @@ CholType{T,S<:AbstractMatrix} = Cholesky{T,S}
2
chol_lower(a::Matrix) = cholesky(a).L
3
4
# always use the stored cholesky factor, not a copy
5
-@inline chol_lower(a::CholType) = a.uplo === 'L' ? a.L : transpose(a.U)
6
-@inline chol_upper(a::CholType) = a.uplo === 'U' ? a.U : transpose(a.L)
+chol_lower(a::CholType) = a.uplo === 'L' ? a.L : a.U'
+@inline chol_upper(a::CholType) = a.uplo === 'U' ? a.U : a.L'
7
8
if HAVE_CHOLMOD
9
CholTypeSparse{T} = SuiteSparse.CHOLMOD.Factor{T}
0 commit comments