Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- from itertools import permutations
- noise_buffer = np.random.normal(size=n*n*n).reshape(n,n,n)/np.sqrt(6);
- noise = np.zeros([n,n,n]);
- for i in permutations([0,1,2]):
- noise += np.transpose(noise_buffer,axes=list(i))
Add Comment
Please, Sign In to add comment