Computational Science, Numpy, Linear Algebra, Numerical Analysis, Python Programming.
column vector. Now we try to create a row vector and column vector, and show the shape of the vectors. import numpy as np vector_row = np.array([[1, -5, 3, 2, 4]]) vector_column = np.array([[1], [2], [3], [4]]) print(vector_row.shape) print(vector_column.shape) The result will be : (1, 5) (4, 1)