Python | sympy.Matrix.row() method Last Updated : 12 Jun, 2019 Comments Improve Suggest changes Like Article Like Report With the help of sympy.Matrix.row() method, we can extract the rows of the matrix. Syntax : sympy.Matrix.row() Return : Return the row of a matrix. Example #1 : In the given example we can see that the sympy.Matrix().row() method is used to extract the rows of a matrix. Python3 1=1 # Import all the methods from sympy from sympy import * # use the row() method for matrix gfg_val = Matrix([[1, 2], [2, 1]]).row(1) print(gfg_val) Output : [2, 1] Example #2 : Python3 1=1 from sympy import * # use the row() method for matrix gfg_val = Matrix([[1, 2], [2, 3], [23, 45]]).row(2) print(gfg_val) Output : [23, 45] Comment More infoAdvertise with us Next Article Python | sympy.Matrix.row() method J Jitender_1998 Follow Improve Article Tags : Python SymPy Practice Tags : python Similar Reads Python | sympy.Matrix.row_del() method With the help of sympy.Matrix.row_del() method, we can delete the rows of the matrix. Syntax : sympy.Matrix().row_del() Return : Return a new matrix. Example #1 : In the given example we can see that the sympy.Matrix.row_del() method is used to delete the row of a matrix and return a new matrix. Pyt 1 min read Python | sympy.Matrix() method With the help of sympy.Matrix() method, we can make, rearrange, extract the different rows and columns in a matrix which is created by sympy.Matrix() method. Syntax : sympy.Matrix() Return : Return a matrix.  Example #1 :In this example, we can see that by using sympy.Matrix() method, we can create 1 min read Python sympy | Matrix.rref() method With the help of sympy.Matrix().rref() method, we can put a matrix into reduced Row echelon form. Matrix().rref() returns a tuple of two elements. The first is the reduced row echelon form, and the second is a tuple of indices of the pivot columns. Syntax: Matrix().rref() Returns: Returns a tuple of 2 min read Python | sympy.Matrix.col() method With the help of sympy.Matrix().col() method, we can extract the columns of the matrix. Syntax : sympy.Matrix().col() Return : Return the col of a matrix. Example #1 : In the given example we can see that the sympy.Matrix.col() method is used to extract the columns of a matrix. Python3 1=1 # Import 1 min read Python | sympy.Matrix.col_del() method With the help of sympy.Matrix.col_del() method, we can delete the columns of the matrix. Syntax : sympy.Matrix().col_del() Return : Return a new matrix. Example #1 : In the given example we can see that the sympy.Matrix.col_del() method is used to delete the column of a matrix and return a new matri 1 min read Like