Variable a
has the shape (3,1) and variable b
has the shape (3,100). Now, I want to add variable a
to just one column of variable b
, meaning:
x[:,ii] = a + b[:,ii]
However, I get this message:
could not broadcast input array from shape (3,3) into shape (3,)
What am I missing?