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
You can store the array's elements in a row or column as follows:
>>> a = np.array([1, 2, 3])[:, None] # stores in rows >>> a array([[1], [2], [3]]) >>> b = np.array([1, 2, 3])[None, :] # stores in columns >>> b array([[1, 2, 3]])