I've been looking for ways to avoid long "for" loops as I'll be dealing with mesh operations and was wondering if there was a way to make an array of functions. Something like the following would be nice.
x=np.array([1,2,3,4,5])
funcs=np.array([func1,func2,func3,func4],dtype=function)
output=funcs(x)