Python | Numpy matrix.view() Last Updated : 29 May, 2019 Comments Improve Suggest changes Like Article Like Report With the help of Numpy matrix.view() method, we can find the new view of a the matrix by using the matrix.view() method. Syntax : matrix.view() Return : Return new view for same matrix Example #1 : In this example we can see that by using matrix.view() method we are able to find the new view of the given matrix. 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.view() method geek = gfg.view() 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.view() method geek = gfg.view() print(geek) Output: [[ 4 1 9] [12 3 1] [ 4 5 6]] Comment More infoAdvertise with us Next Article Python | Numpy matrix.view() J jitender_1998 Follow Improve Article Tags : Python Python-numpy Python numpy-Matrix Function Practice Tags : python Similar Reads Python | Numpy matrix.take() With the help of Numpy matrix.take() method, we can select the elements from a given matrix by passing the parameter as index value of that element. It will return a matrix having one dimension. Remember it will work for one axis at a time. Syntax : matrix.take(index, axis) Return : Return matrix of 1 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 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.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 numpy.ndarray.view() in Python numpy.ndarray.view() helps to get a new view of array with the same data. Syntax: ndarray.view(dtype=None, type=None)Parameters: dtype : Data-type descriptor of the returned view, e.g., float32 or int16. The default, None, results in the view having the same data-type as a. type : Python type, opti 3 min read Like