NumPy - Broadcasting
Given a 2D array
matrix of shape (5, 1) and a 1D array vec of shape (5,), you want to add them element-wise. Which code correctly uses broadcasting to do this?