From 6a9159d628f6ee8bab0ae42088dce1f7c1552648 Mon Sep 17 00:00:00 2001 From: Katharine Hyatt Date: Tue, 9 Sep 2025 15:42:31 -0400 Subject: [PATCH] Fix copy_input for qr --- src/implementations/lq.jl | 2 +- src/implementations/qr.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/implementations/lq.jl b/src/implementations/lq.jl index 391af0376..ef37cbb89 100644 --- a/src/implementations/lq.jl +++ b/src/implementations/lq.jl @@ -1,7 +1,7 @@ # Inputs # ------ for f in (:lq_full, :lq_compact, :lq_null) - @eval function copy_input(::typeof($f), A::AbstractMatrix) + @eval function copy_input(::typeof($f), A) return copy!(similar(A, float(eltype(A))), A) end @eval copy_input(::typeof($f), A::Diagonal) = copy(A) diff --git a/src/implementations/qr.jl b/src/implementations/qr.jl index 8a06ffddf..dfcad853f 100644 --- a/src/implementations/qr.jl +++ b/src/implementations/qr.jl @@ -1,7 +1,7 @@ # Inputs # ------ for f in (:qr_full, :qr_compact, :qr_null) - @eval function copy_input(::typeof($f), A::AbstractMatrix) + @eval function copy_input(::typeof($f), A) return copy!(similar(A, float(eltype(A))), A) end @eval copy_input(::typeof($f), A::Diagonal) = copy(A)