Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- span class="kw2"> for i, j in [0...m), [0...n)
- t1[i][j] = inp[?swizzle1(i,j)][j] // Step 1: column shuffle
- for i, j in [0...m), [0...n)
- t2[i][j] = t1[i][?swizzle2(j,i)] // Step 2: row shuffle
- for i, j in [0...m), [0...n)
- out[i][j] = t2[?swizzle3(i,j)][j] // Step 3: column shuffle
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement