""" assuming that v is a numpy array with shape (N, ) """ new_v = v.reshape(-1, 1) # new_v.shape is (N, 1)