Python | Numpy matrix.max() Last Updated : 15 Apr, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report With the help of Numpy matrix.max() method, we can get the maximum value from given matrix. Syntax : matrix.max() Return : Return maximum value from given matrix Example #1 : In this example we can see that we are able to get the maximum value from a given matrix with the help of method matrix.max(). Python3 1=1 # import the important module in python import numpy as np # make matrix with numpy gfg = np.matrix('[64, 1; 12, 3]') # applying matrix.max() method geeks = gfg.max() print(geeks) Output: 64 Example #2 : Python3 1=1 # import the important module in python import numpy as np # make a matrix with numpy gfg = np.matrix('[1, 2, 3; 4, 5, 6; 7, 8, 9]') # applying matrix.max() method geeks = gfg.max() print(geeks) Output: 9 Comment More infoAdvertise with us Next Article Python | Numpy matrix.max() J jitender_1998 Follow Improve Article Tags : Python Python-numpy Python numpy-Matrix Function Practice Tags : python Similar Reads numpy.argmax() in Python The numpy.argmax() function returns indices of the max element of the array in a particular axis. Syntax : numpy.argmax(array, axis = None, out = None) Parameters : array : Input array to work on axis : [int, optional]Along a specified axis like 0 or 1 out : [array optional]Provides a feature to ins 3 min read numpy.amax() in Python The numpy.amax() method returns the maximum of an array or maximum along the axis(if mentioned). Syntax: numpy.amax(arr, axis = None, out = None, keepdims = <class numpy._globals._NoValue>) Parameters -Â arr : [array_like] input dataaxis : [int or tuples of int] axis along which we want the ma 2 min read numpy.fmax() in Python numpy.fmax() function is used to compute element-wise maximum of array elements. This function compare two arrays and returns a new array containing the element-wise maxima. If one of the elements being compared is a NaN, then the non-nan element is returned. If both elements are NaNs then the first 2 min read numpy.maximum() in Python numpy.maximum() function is used to find the element-wise maximum of array elements. It compares two arrays and returns a new array containing the element-wise maxima. If one of the elements being compared is a NaN, then that element is returned. If both elements are NaNs then the first is returned. 2 min read numpy.argmin() in Python The numpy.argmin() method returns indices of the min element of the array in a particular axis. Syntax : numpy.argmin(array, axis = None, out = None) Parameters : array : Input array to work on axis : [int, optional]Along a specified axis like 0 or 1 out : [array optional]Provides a feature to inser 2 min read Like