From fde6b365c27f97daeeb6c2879079431b79ccaf71 Mon Sep 17 00:00:00 2001 From: lkdvos Date: Tue, 13 Aug 2024 11:45:42 +0200 Subject: [PATCH] Backport: Fix reference to undefined _leftorth! --- src/auxiliary/random.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/auxiliary/random.jl b/src/auxiliary/random.jl index 90e72ccf..8bae3f73 100644 --- a/src/auxiliary/random.jl +++ b/src/auxiliary/random.jl @@ -29,7 +29,8 @@ See also [`randuniform`](@ref) and [`randnormal`](@ref). """ randisometry(dims::Base.Dims{2}) = randisometry(Float64, dims) function randisometry(::Type{T}, dims::Base.Dims{2}) where {T<:Number} - return dims[1] >= dims[2] ? _leftorth!(randnormal(T, dims), QRpos(), 0)[1] : + return dims[1] >= dims[2] ? + MatrixAlgebra.leftorth!(randnormal(T, dims), QRpos(), 0)[1] : throw(DimensionMismatch("cannot create isometric matrix with dimensions $dims; isometry needs to be tall or square")) end