Skip to content

Commit

Permalink
fix rref for complex matrices (issue JuliaLang#1869)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Jan 2, 2013
1 parent 464f407 commit c30a381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/linalg_dense.jl
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ end

function rref{T}(A::Matrix{T})
nr, nc = size(A)
U = copy_to(similar(A,Float64), A)
U = copy_to(similar(A, T <: Complex ? Complex128 : Float64), A)
e = eps(norm(U,Inf))
i = j = 1
while i <= nr && j <= nc
Expand Down

0 comments on commit c30a381

Please sign in to comment.