Python | Numpy matrix.tolist() Last Updated : 29 May, 2019 Comments Improve Suggest changes Like Article Like Report With the help of Numpy matrix.tolist() method, we are able to convert the matrix into a list by using the matrix.tolist() method. Syntax: matrix.tolist() Return : Return a new list Example #1 : In this example we can see that by passing the matrix we are able to convert it into list by using the matrix.tolist() method. Python3 1== # import the important module in python import numpy as np # make matrix with numpy gfg = np.matrix('[4, 1, 12, 3]') # applying matrix.tolist() method geek = gfg.tolist() print(geek) Output: [[4, 1, 12, 3]] Example #2 : Python3 1== # import the important module in python import numpy as np # make matrix with numpy gfg = np.matrix('[4, 1, 9; 12, 3, 1; 4, 5, 6]') # applying matrix.tolist() method geek = gfg.tolist() print(geek) Output: [[4, 1, 9], [12, 3, 1], [4, 5, 6]] Comment More infoAdvertise with us Next Article Python | Numpy matrix.tolist() J Jitender_1998 Follow Improve Article Tags : Python Python-numpy Python numpy-Matrix Function Practice Tags : python Similar Reads Python | Numpy matrix.transpose() With the help of Numpy matrix.transpose() method, we can find the transpose of the matrix by using the matrix.transpose()method in Python. Numpy matrix.transpose() Syntax Syntax : matrix.transpose() Parameter: No parameters; transposes the matrix it is called on. Return : Return transposed matrix Wh 3 min read numpy.matrix() in Python This class returns a matrix from a string of data or array-like object. Matrix obtained is a specialised 2D array. Syntax : numpy.matrix(data, dtype = None) : Parameters : data : data needs to be array-like or string dtype : Data type of returned array. Returns : data interpreted as a matrix Python 1 min read numpy.asmatrix() in Python numpy.asmatrix(data, dtype = None) Returns a matrix by interpreting the input as a matrix. Parameters : data : array-like input data dtype : Data type of returned array Returns : Interprets the input as a matrix Python # Python Programming illustrating # numpy.asmatrix import numpy as geek # array-l 1 min read Matrix Transpose Without Numpy In Python Matrix transpose is a fundamental operation in linear algebra where the rows of a matrix are swapped with its columns. This operation is denoted by A^T, where A is the original matrix. The transposition of a matrix has various applications, such as solving systems of linear equations, computing the 3 min read Numpy recarray.tolist() function | Python In numpy, arrays may have a data-types containing fields, analogous to columns in a spreadsheet. An example is [(a, int), (b, float)], where each entry in the array is a pair of (int, float). Normally, these attributes are accessed using dictionary lookups such as arr['a'] and arr['b']. Record array 3 min read Like