Skip to content

Commit 7f66601

Browse files
committed
revert CholType reoval
1 parent 6ea0ccf commit 7f66601

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/chol.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
CholType{T,S<:AbstractMatrix} = Cholesky{T,S}
2+
13
# Accessing a.L directly might involve an extra copy();
24
# instead, always use the stored Cholesky factor:
3-
chol_lower(a::Cholesky) = a.uplo === 'L' ? a.L : a.U'
4-
chol_upper(a::Cholesky) = a.uplo === 'U' ? a.U : a.L'
5+
chol_lower(a::CholType) = a.uplo === 'L' ? a.L : a.U'
6+
chol_upper(a::CholType) = a.uplo === 'U' ? a.U : a.L'
57

68
chol_lower(a::Matrix) = chol_lower(cholesky(a))
79

0 commit comments

Comments
 (0)