Advertisement
UF6

Problem 2 Final

UF6
May 8th, 2016
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. import itertools
  2. import numpy as np
  3.  
  4. my_array = np.empty([n, n])
  5. for i, j in itertools.product(range(n), range(n)):
  6.     my_array[i, j] = f(i, j)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement