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 6ea0ccf commit 7f66601Copy full SHA for 7f66601
src/chol.jl
@@ -1,7 +1,9 @@
1
+CholType{T,S<:AbstractMatrix} = Cholesky{T,S}
2
+
3
# Accessing a.L directly might involve an extra copy();
4
# instead, always use the stored Cholesky factor:
-chol_lower(a::Cholesky) = a.uplo === 'L' ? a.L : a.U'
-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'
7
8
chol_lower(a::Matrix) = chol_lower(cholesky(a))
9
0 commit comments