ones((4, 1))
A + ones((4, 1))
ones((1, 3))
A + ones((1, 3))
B = ones((3,))
B
B.shape
A + B
C = ones((4,))
C.shape
C
A + C
D = C[:, (newaxis)]
D.shape
A + D
Adding arrays with different number of dimensions