Articles → Numpy → Fmax Function In Numpy

Fmax Function In Numpy






Purpose





Example


import numpy as np

print(np.fmax([2, 3, 4], [1, 5, 2]))




  1. Compares 2 and 1 and returns 2.
  2. Compares 3 and 5 and returns 5.
  3. Compares 4 and 2 and returns 4.



Output


Picture showing the output of the fmax function in numpy
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, June 25, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250