From ae3f59d511e20727e0c52ed7da62f06c1410e588 Mon Sep 17 00:00:00 2001 From: araujoms Date: Tue, 2 Jul 2024 00:49:05 +0200 Subject: [PATCH] pointless optimization --- src/random.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/random.jl b/src/random.jl index 0a9e279..8c9fd1c 100644 --- a/src/random.jl +++ b/src/random.jl @@ -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]))