Advertisement
namibj

transpose_crc_swizzle_sketch.pseudo.rkt

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