Skip to content

Commit

Permalink
Undo the complicated expression
Browse files Browse the repository at this point in the history
  • Loading branch information
mfherbst committed Dec 7, 2022
1 parent 9bdbff6 commit 3dc6bf9
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/common/ortho.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
@timing function ortho_qr(φk::ArrayType) where {ArrayType <: AbstractArray}
x = convert(ArrayType, qr(φk).Q)
if size(x) == size(φk)
return x
else
# Sometimes QR (but funnily not always) CUDA messes up the size here
return x[:, 1:size(φk, 2)]
end
end
@timing ortho_qr(φk::ArrayType) where {ArrayType <: AbstractArray} = convert(ArrayType, qr(φk).Q)

0 comments on commit 3dc6bf9

Please sign in to comment.