In MATLAB, I can do the following operation:
[1 2 3; 4 5 6] + [-1 -2 -3]
This will return [0 0 0; 3 3 3], as it understands that I want to perform the addition of the vector with each row of the matrix.
How can I do this in Julia? If I try, it gives me this error:
ERROR: DimensionMismatch("dimensions must match: a has dims (Base.OneTo(2), Base.OneTo(3)), b has dims (Base.OneTo(1), Base.OneTo(3)), mismatch at 1")