Skip to content

Commit 031c5fd

Browse files
committed
added second vec sparse
1 parent e6cc8b6 commit 031c5fd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/linalg.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,8 @@ function dot(x::AbstractSparseVector, D::Diagonal, y::AbstractVector)
645645
return s
646646
end
647647

648+
dot(x::AbstractVector, D::Diagonal, y::AbstractSparseVector) = adjoint(dot(y, D', x))
649+
648650
function dot(x::AbstractSparseVector, D::Diagonal, y::AbstractSparseVector)
649651
d = D.diag
650652
if length(y) != length(x) || length(y) != length(d)

0 commit comments

Comments
 (0)