Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import itertools
- import numpy as np
- my_array = np.empty([n, n])
- for i, j in itertools.product(range(n), range(n)):
- my_array[i, j] = f(i, j)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement