Skip to content

Commit

Permalink
eigvals for hermitian A should be consistent with other matrix classe…
Browse files Browse the repository at this point in the history
…s and return only eigvals, not 2-tuple of eigvals and empty matrix.
  • Loading branch information
kofron committed Dec 7, 2012
1 parent 1a7e24e commit 8e7eeae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/linalg_dense.jl
Original file line number Diff line number Diff line change
Expand Up @@ -651,11 +651,11 @@ function eig{T<:LapackType}(A::StridedMatrix{T}, vecs::Bool)
if vecs
Z = similar(A)
W = LAPACK.syevr!(copy(A), Z)
return W, Z
else
Z = Array(T, 0, 0)
W = LAPACK.syevr!(copy(A))
return W
end
return W, Z
end

if iscomplex(A)
Expand Down

0 comments on commit 8e7eeae

Please sign in to comment.