numpy.fromfunction
#numpy
Construct an array by executing a function over each coordinate.
https://docs.scipy.org/doc/numpy/reference/generated/numpy.fromfunction.html