Skip to content

Commit bba7ac9

Browse files
committed
lighten ambiguity checks
1 parent d1a240e commit bba7ac9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/linalg.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ function dot(x::AbstractVector{T1}, A::AbstractSparseMatrixCSC{T2}, y::AbstractV
605605
end
606606
return s
607607
end
608-
function dot(x::SparseVector, A::AbstractSparseMatrixCSC, y::SparseVector)
608+
function dot(x::AbstractSparseVector, A::AbstractSparseMatrixCSC, y::AbstractSparseVector)
609609
m, n = size(A)
610610
length(x) == m && n == length(y) ||
611611
throw(DimensionMismatch("x has length $(length(x)), A has size ($m, $n), y has length $(length(y))"))
@@ -725,7 +725,7 @@ end
725725

726726
function dot(
727727
a::AbstractSparseVector,
728-
Q::Union{DenseMatrixUnion,WrapperMatrixTypes{<:Real,DenseMatrixUnion}},
728+
Q::AbstractMatrix,
729729
b::AbstractSparseVector,
730730
)
731731
return _dot_quadratic_form(a, Q, b)

0 commit comments

Comments
 (0)