Make Numpy Array From Function