Linear Algebra, Numpy, Numpy Tutorial, Data Science, Python.
call it A which is a 2x2 matrix. A = ([2,2],[2,2]) In NumPy, we can use lists again to create a matrix. But this time instead of just one list, we create a list for every row in the matrix. r1 = [2,2] r2 = [2,2] numpy_A_22 = np.array([r1,r2]) print(numpy_A_22) [[2 2] [2 2]] print(numpy_A_22.shape)