Skip to content

Commit

Permalink
pointless optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
araujoms committed Jul 1, 2024
1 parent a585766 commit ae3f59d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/random.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function random_unitary(::Type{T}, d::Integer) where {T<:Number}
else
z = randn(T, d, d)
end
Q, R = LA.qr(z)
Q, R = LA.qr!(z)
λ = Vector{real(T)}(undef, d)
for i in eachindex(λ)
@inbounds λ[i] = sign(real(R[i, i]))
Expand Down

0 comments on commit ae3f59d

Please sign in to comment.