In Python I can have an numpy array a
with dimensions (2, 3, 2) and b
with (3) and do
c = a[:, :, :] + b[None, :, None]
I did not manage to figure out how to do this with Julia broadcast, because I do not know how to select the middle dimension.
c = broadcast(+, a, b)
What is the proper way to do this?