Skip to content

Commit eb346bc

Browse files
committed
fix error
1 parent bfcaad6 commit eb346bc

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
@@ -633,7 +633,7 @@ function dot(x::AbstractSparseVector, Q::Diagonal, y::AbstractVector)
633633
d = Q.diag
634634
if length(x) != length(y) || length(y) != length(d)
635635
throw(
636-
DimensionMismatch("Vectors and matrix have different dimensions, x has a length $(length(x)), y has a length $(length(y)), Q has side dimension $(length(d))")
636+
DimensionMismatch("Vectors and matrix have different dimensions, x has a length $(length(x)), y has a length $(length(y)), Q has side dimension $(size(Q, 1))")
637637
)
638638
end
639639
nzvals = nonzeros(x)
@@ -649,7 +649,7 @@ function dot(x::AbstractSparseVector, Q::Diagonal, y::AbstractSparseVector)
649649
n = length(x)
650650
if length(y) != n || n != size(Q, 1)
651651
throw(
652-
DimensionMismatch("Vectors and matrix have different dimensions, x has a length $(length(x)), y has a length $(length(y)), Q has side dimension $(length(d))")
652+
DimensionMismatch("Vectors and matrix have different dimensions, x has a length $(length(x)), y has a length $(length(y)), Q has side dimension $(size(Q, 1))")
653653
)
654654
end
655655
xnzind = nonzeroinds(x)

0 commit comments

Comments
 (0)