Skip to content

Commit 3f37f86

Browse files
Apply suggestions from code review
Co-authored-by: Andreas Noack <[email protected]>
1 parent 1ed64a4 commit 3f37f86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/chol.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ CholType{T,S<:AbstractMatrix} = Cholesky{T,S}
22
chol_lower(a::Matrix) = cholesky(a).L
33

44
# 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)
5+
chol_lower(a::CholType) = a.uplo === 'L' ? a.L : a.U'
6+
@inline chol_upper(a::CholType) = a.uplo === 'U' ? a.U : a.L'
77

88
if HAVE_CHOLMOD
99
CholTypeSparse{T} = SuiteSparse.CHOLMOD.Factor{T}

0 commit comments

Comments
 (0)