Skip to content

Commit c3fada6

Browse files
update for new QR instance
1 parent 2be78bd commit c3fada6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ArrayInterface.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,11 @@ Returns an instance of the QR factorization object with the correct type
573573
cheaply.
574574
"""
575575
function qr_instance(A::Matrix{T}) where {T}
576-
LinearAlgebra.QRCompactWYQ(zeros(T,0,0),zeros(T,0,0))
576+
if VERSION >= v"1.9"
577+
LinearAlgebra.QRCompactWY(zeros(T,0,0),zeros(T,0,0))
578+
else
579+
LinearAlgebra.QRCompactWYQ(zeros(T,0,0),zeros(T,0,0))
580+
end
577581
end
578582

579583
function qr_instance(A::Matrix{BigFloat})

0 commit comments

Comments
 (0)