Skip to content

Commit 414b771

Browse files
fix v1.6 test of factorization dispatches
1 parent 647eab7 commit 414b771

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/array_partition.jl

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -435,12 +435,14 @@ function LinearAlgebra.ldiv!(A::Factorization, b::ArrayPartition)
435435
(x = ldiv!(A, Array(b)); copyto!(b, x))
436436
end
437437

438-
function LinearAlgebra.ldiv!(A::LinearAlgebra.SVD{T, Tr, M}, b::ArrayPartition) where {Tr, T, M<:AbstractArray{T}}
439-
(x = ldiv!(A, Array(b)); copyto!(b, x))
440-
end
438+
@static if VERSION >= v"1.9"
439+
function LinearAlgebra.ldiv!(A::LinearAlgebra.SVD{T, Tr, M}, b::ArrayPartition) where {Tr, T, M<:AbstractArray{T}}
440+
(x = ldiv!(A, Array(b)); copyto!(b, x))
441+
end
441442

442-
function LinearAlgebra.ldiv!(A::LinearAlgebra.QRCompactWY{T, M, C}, b::ArrayPartition) where {T<:Union{Float32, Float64, ComplexF64, ComplexF32}, M<:AbstractMatrix{T}, C<:AbstractMatrix{T}}
443-
(x = ldiv!(A, Array(b)); copyto!(b, x))
443+
function LinearAlgebra.ldiv!(A::LinearAlgebra.QRCompactWY{T, M, C}, b::ArrayPartition) where {T<:Union{Float32, Float64, ComplexF64, ComplexF32}, M<:AbstractMatrix{T}, C<:AbstractMatrix{T}}
444+
(x = ldiv!(A, Array(b)); copyto!(b, x))
445+
end
444446
end
445447

446448
function LinearAlgebra.ldiv!(A::LU, b::ArrayPartition)

0 commit comments

Comments
 (0)