Class IntScramble

java.lang.Object
org.apfloat.internal.IntScramble

public class IntScramble extends Object
Functions to perform bit-reverse ordering of int data.
Version:
1.0
Author:
Mikko Tommila
  • Method Details

    • scramble

      public static void scramble(int[] data, int offset, int[] permutationTable)
      Permute the data in the table to bit-reversed order.

      The permutation table argument should contain pairs of indexes that indicate array elements whose contents are swapped.

      Parameters:
      data - The array to permute.
      offset - The offset within the array to permute.
      permutationTable - Table of indexes indicating, which elements in the data are to be swapped.