Skip to content

Commit

Permalink
Merge pull request #34 from yuyichao/chol-depwarn
Browse files Browse the repository at this point in the history
Fix chol depwarn
  • Loading branch information
andreasnoack committed Jan 19, 2016
2 parents debf558 + 6313385 commit 995576f
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 995576f

Please sign in to comment.