May-20-2020, 07:46 PM
There is no such thing as a Python matrix. You can have a list of lists, like you show in your example. If you are using numpy you can have an array of arrays.
There used to be a matrix class in numpy, but I think it is depreciated.
m = np.array([[1, 2, 3], [4, 5, 6]))m can have matrix like things done to it like m.transpose() or m.dot(anotherM)
There used to be a matrix class in numpy, but I think it is depreciated.