shift network
任意の回転, 乗算マスク, 加算を実現するための手法
-
任意の並び替え:
- に対するshift-column : 各slotでどれだけ回転すればよいか
ex.
なら
- に対するshift-column : 各slotでどれだけ回転すればよいか
-
mask は 1 otherwize:
-
maskと掛け算した後に非0が先頭に来るようにshift
-
cost: # of rots
-
1 cmult depth
-
shift network: shift-colの列
- 個の置換 ( はnetworkのdepthとする)
-
のcostはlevelの和
-
のdepth
- は 定数マスク, rots, adds,
-
と のcost
- rots, adds