# column vector: colVec = Matrix([1,2,3,4,5]) # Matrix P = Matrix([[ ], [ ], []]) # returns the shape of the matric a.shape colVec.shape # returns the selected row or column a.row(0) a.col(0) # inverse of a matrix a**-1 # Transpose of a matrix a.T # Create the identity matrix eye(3) # Create an empty matrix zeros(3,2) # Create a matrix with ones ones(4,2)