I have a numpy array a and want to pass its elements to a function func in a loop:
a
func
a = np.array([0, 0, 1], dtype=\'bool\') def func