Skip to content

Commit 8941d0a

Browse files
Restoring order of function definitions
1 parent 0b16b3a commit 8941d0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/cusolver/linalg.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ using LinearAlgebra: Factorization, AbstractQ, QRCompactWY, QRCompactWYQ, QRPack
101101

102102
if VERSION >= v"1.8-"
103103

104-
LinearAlgebra.qr!(A::CuMatrix{T}) where T = CuQR(geqrf!(A::CuMatrix{T})...)
105-
LinearAlgebra.qr!(A::StridedCuMatrix{T}) where T = CuQR(geqrf!(A::StridedCuMatrix{T})...)
104+
LinearAlgebra.qr!(A::StridedCuMatrix{T}) where T = QR(geqrf!(A::StridedCuMatrix{T})...)
106105

107106
# conversions
108107
CuMatrix(F::Union{QR,QRCompactWY}) = CuArray(AbstractArray(F))
@@ -234,7 +233,8 @@ end
234233
# avoid the generic similar fallback that returns a CPU array
235234
Base.similar(Q::CuQRPackedQ, ::Type{T}, dims::Dims{N}) where {T,N} =
236235
CuArray{T,N}(undef, dims)
237-
236+
237+
LinearAlgebra.qr!(A::StridedCuMatrix{T}) where T = CuQR(geqrf!(A::StridedCuMatrix{T})...)
238238

239239
Base.size(A::CuQR) = size(A.factors)
240240
Base.size(A::CuQRPackedQ, dim::Integer) = 0 < dim ? (dim <= 2 ? size(A.factors, 1) : 1) : throw(BoundsError())

0 commit comments

Comments
 (0)