Skip to content

Commit

Permalink
Fix reference to undefined _leftorth! (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos authored Aug 13, 2024
1 parent 0a93955 commit 0acfb13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/auxiliary/random.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0acfb13

Please sign in to comment.