Skip to content

Commit

Permalink
Fix parameter initialization for array type in PivotedCholesky
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasnoack committed Feb 23, 2016
1 parent 4ce06c2 commit a7c2395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/linalg/cholesky.jl
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ end
function _cholfact!{T<:BlasFloat}(A::StridedMatrix{T}, ::Type{Val{true}}, uplo::Symbol=:U; tol=0.0)
uplochar = char_uplo(uplo)
A, piv, rank, info = LAPACK.pstrf!(uplochar, A, tol)
return CholeskyPivoted{T,StridedMatrix{T}}(A, uplochar, piv, rank, tol, info)
return CholeskyPivoted{T,typeof(A)}(A, uplochar, piv, rank, tol, info)
end

"""
Expand Down

0 comments on commit a7c2395

Please sign in to comment.