I would like to apply a function to each of the element of my numpy array. I did some thing like this; but it still print the original array. What might be the problem?
def my_func(k):
3.15+ k*12**45+16
arr = np.array([12,45,45],[12,88,63])
my_func(arr)
print (arr)
3.15 + arr*12**45+16work?arrinstead ofarand reassign toarr?