-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
julia> A = [1; 2;;]
2×1 Matrix{Int64}:
1
2
julia> B = [1 2]
1×2 Matrix{Int64}:
1 2
julia> A * B
2×2 Matrix{Int64}:
1 2
2 4
julia> B * A
1×1 Matrix{Int64}:
5
julia> MutableArithmetics.operate!!(*, A, B)
ERROR: DimensionMismatch: array could not be broadcast to match destination
Stacktrace:
[1] check_broadcast_shape
@ ./broadcast.jl:579 [inlined]
[2] check_broadcast_shape
@ ./broadcast.jl:580 [inlined]
[3] check_broadcast_axes
@ ./broadcast.jl:582 [inlined]
[4] instantiate
@ ./broadcast.jl:309 [inlined]
[5] materialize!
@ ./broadcast.jl:914 [inlined]
[6] materialize!
@ ./broadcast.jl:911 [inlined]
[7] operate!(::typeof(*), x::Matrix{Int64}, y::Matrix{Int64})
@ MutableArithmetics ~/.julia/dev/MutableArithmetics/src/rewrite_generic.jl:9
[8] operate_fallback!!
@ ~/.julia/dev/MutableArithmetics/src/interface.jl:601 [inlined]
[9] operate!!(::typeof(*), ::Matrix{Int64}, ::Matrix{Int64})
@ MutableArithmetics ~/.julia/dev/MutableArithmetics/src/interface.jl:585
[10] top-level scope
@ REPL[70]:1
julia> A
2×1 Matrix{Int64}:
1
2
julia> B
1×2 Matrix{Int64}:
1 2
julia> MutableArithmetics.operate!!(*, B, A)
1×2 Matrix{Int64}:
5 5
julia> A
2×1 Matrix{Int64}:
1
2
julia> B
1×2 Matrix{Int64}:
5 5Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working