Skip to content

Commit c2374dd

Browse files
Update factorization_sparse.jl
1 parent 8337af2 commit c2374dd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/factorization_sparse.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,10 @@ function _ldiv!(x::AbstractVector,
1313
SparseArrays.CHOLMOD.Factor}, b::AbstractVector)
1414
x .= A \ b
1515
end
16+
17+
# Ambiguity removal
18+
_ldiv!(::SVector,
19+
A::Union{SparseArrays.CHOLMOD.Factor, LinearAlgebra.QR, LinearAlgebra.QRCompactWY, SparseArrays.SPQR.QRSparse},
20+
b::AbstractVector) = (A \ b)
21+
_ldiv!(::SVector, A::Union{SparseArrays.CHOLMOD.Factor, LinearAlgebra.QR, LinearAlgebra.QRCompactWY, SparseArrays.SPQR.QRSparse},
22+
b::SVector) = (A \ b)

0 commit comments

Comments
 (0)