MV2

fromfunction(f, dimensions)[source]

Apply f to s to create an array as in numpy.