Consider
x = np.array([[1,2,3], [4,5,6], [7,8,9], [10, 11, 12]])
v = np.array([1, 0, 1])
In Python's view, x has shape (4, 3) and v shape (3, ). Why didn't Python view v as having shape (, 3). Also, why do v and v.T have the same shape (3, ). IMHO, I think if v has shape (3, ) then v.T should have shape (, 3)?
shapeis atuple), and what does it mean to be 1 dimensional. People coming from MATLAB, and some linear algebra, backgrounds, can't conceive of an array that only has 1 dimension. It has to be a row vector or column vector, never a plain vector. :)