Skip to content

Commit

Permalink
Fix chol depwarn. Ref JuliaLang/julia#13680
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyichao committed Dec 24, 2015
1 parent debf558 commit 6313385
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/chol.jl
Original file line number Diff line number Diff line change
@@ -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}}
Expand Down

0 comments on commit 6313385

Please sign in to comment.