Skip to content

Commit b0431ce

Browse files
ffevottedkarrasch
authored andcommitted
Avoid overspecialization of the SparseMatrixCSC * Diagonal product (#33352)
1 parent 4443010 commit b0431ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/SparseArrays/src/linalg.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,7 @@ function copyinds!(C::AbstractSparseMatrixCSC, A::AbstractSparseMatrixCSC)
13601360
end
13611361

13621362
# multiply by diagonal matrix as vector
1363-
function mul!(C::AbstractSparseMatrixCSC, A::AbstractSparseMatrixCSC, D::Diagonal{T, <:Vector}) where T
1363+
function mul!(C::AbstractSparseMatrixCSC, A::AbstractSparseMatrixCSC, D::Diagonal)
13641364
m, n = size(A)
13651365
b = D.diag
13661366
(n==length(b) && size(A)==size(C)) || throw(DimensionMismatch())
@@ -1374,7 +1374,7 @@ function mul!(C::AbstractSparseMatrixCSC, A::AbstractSparseMatrixCSC, D::Diagona
13741374
C
13751375
end
13761376

1377-
function mul!(C::AbstractSparseMatrixCSC, D::Diagonal{T, <:Vector}, A::AbstractSparseMatrixCSC) where T
1377+
function mul!(C::AbstractSparseMatrixCSC, D::Diagonal, A::AbstractSparseMatrixCSC)
13781378
m, n = size(A)
13791379
b = D.diag
13801380
(m==length(b) && size(A)==size(C)) || throw(DimensionMismatch())

0 commit comments

Comments
 (0)