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]))
- Compares 2 and 1 and returns 2.
- Compares 3 and 5 and returns 5.
- Compares 4 and 2 and returns 4.
Output
Click to Enlarge