NumPy | Python Methods and Functions

* *

Using the ` `

method, we can get the ** Numpy matrix.max () ** ** maximum ** value from a given matrix.

Syntax:`matrix.max()`

Return:Return maximum value from a given matrix

** Example # 1: **

In this example, we see that we can get the maximum value from a given matrix using the ` matrix method .max () `

.

` ` |

** Exit :**

64

** Example # 2: **

` `

` ` ` # import an 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] ``

`) `

` `

` # using the matrix.max () method `

` geeks `

` = `` gfg. `

` max `

` () `

` `

` print `

` (geeks) `

` `

** Exit:**

9

As the title promises, this book will introduce you to one of the world’s most popular programming languages: Python. It’s aimed at beginning programmers as well as more experienced programmers wh...

23/09/2020

This book is not just about learning the code; even if you learn to program. If you want to program professionally, learning to code is not enough; For this reason, in addition to helping you program,...

05/09/2021

In Learn Python 3 the Hard Way PDF, you'll learn Python by working through 52 brilliantly crafted exercises. Read them. Enter your code exactly. (No copying and pasting!) Correct your mistakes. ...

05/09/2021

Shabbir Challawala has over 8 years of rich experience in providing solutions based on MySQL and PHP technologies. He is currently working with KNOWARTH Technologies. He has worked in various PHP-base...

10/07/2020

X
# Submit new EBook