BUG: raising error in np.dot when one of the inputs are assigned to out