Skip to content

Commit

Permalink
Update stdlib/LinearAlgebra/src/diagonal.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarrasch committed Jun 26, 2024
1 parent 1953ced commit f3e1580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/LinearAlgebra/src/diagonal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ function eigen(D::Diagonal; permute::Bool=true, scale::Bool=true, sortby::Union{
evecs[p[i],i] = one(Td)
end
else
evecs = Diagonal(ones(eltype(λ), length(λ)))
evecs = Diagonal(ones(Td, length(λ)))
end
Eigen(λ, evecs)
end
Expand Down

0 comments on commit f3e1580

Please sign in to comment.