From 63133854e063e4f57df77e0b5571df44031b5d27 Mon Sep 17 00:00:00 2001 From: Yichao Yu Date: Thu, 24 Dec 2015 10:39:42 -0500 Subject: [PATCH] Fix chol depwarn. Ref JuliaLang/julia#13680 --- src/chol.jl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/chol.jl b/src/chol.jl index 9ecb3be..45af6d0 100644 --- a/src/chol.jl +++ b/src/chol.jl @@ -1,6 +1,13 @@ # needs special attention to Cholesky, as the syntax & behavior changes in 0.4-pre -if VERSION >= v"0.4.0-dev+4370" +if VERSION >= v"0.5.0-dev+907" + typealias CholType Cholesky{Float64, Matrix{Float64}} + chol_lower(a::Matrix{Float64}) = ctranspose(chol(a)) + + typealias CholTypeSparse SparseArrays.CHOLMOD.Factor{Float64} + + chol_lower(cf::CholTypeSparse) = cf[:L] +elseif VERSION >= v"0.4.0-dev+4370" # error("Choleksy changes in 0.4.0-dev+4370 (PR #10862), we are still working to make it work with these changes.") typealias CholType Cholesky{Float64, Matrix{Float64}}