Is there a good way of differentiating between row and column vectors in python? So far I\'m using numpy and scipy and what I see so far is that If I was to give one a vecto
Here's another intuitive way. Suppose we have:
>>> a = np.array([1, 3, 4]) >>> a array([1, 3, 4])
First we make a 2D array with that as the only row:
>>> a = np.array([a]) >>> a array([[1, 3, 4]])
Then we can transpose it:
>>> a.T array([[1], [3], [4]])