How to select max when comparing single element & array in python?
ex: i = 5 & a = np.array([3,9,1,4,6])
expected result is an array = [5,9,5,5,6]
by comparing i to each element of a & select the max.
Besides use for loop, is there a vectorization faster way?
np.maximum(a,i)