Package org.apfloat.internal
Class LongScramble
- java.lang.Object
-
- org.apfloat.internal.LongScramble
-
public class LongScramble extends java.lang.ObjectFunctions to perform bit-reverse ordering oflongdata.- Version:
- 1.0
-
-
Constructor Summary
Constructors Modifier Constructor Description privateLongScramble()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidscramble(long[] data, int offset, int[] permutationTable)Permute the data in the table to bit-reversed order.
-
-
-
Method Detail
-
scramble
public static void scramble(long[] 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 thedataare to be swapped.
-
-