Skip to content

Commit 51e7e3e

Browse files
committed
Update
1 parent 05d7c50 commit 51e7e3e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/implementations/LinearAlgebra.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,9 @@ function operate(
428428
# We can't use A * B here, because this will StackOverflow via:
429429
# *(A, B) -> mul(A, B) -> operate(*, A, B) -> *(A, B)
430430
# See MutableArithmetics.jl#336
431-
@assert axes(A, 2) == axes(B, 1)
431+
if axes(A, 2) != axes(B, 1)
432+
throw(DimensionMismatch())
433+
end
432434
return [sum(A[i, j] * B[j] for j in axes(B, 1)) for i in axes(A, 1)]
433435
end
434436
return A * B

0 commit comments

Comments
 (0)