Is it possible to create a numpy of any arbitrary data structure, for example tuples? If yes, how do I initialize it without writing it out? (Obviously, I don't want to write out 64 by 64 array)
Create an empty array of
then put tuples (or anything else) in it:
for y in range(64): for x in range(64): a[y,x] = (0,0)
The most import thing actually is the
dtype=object, allowing you to put any Python object in it (losing the speed of vectorized operations however).