dice.util
Class BiArrays

java.lang.Object
  extended by dice.util.BiArrays

public class BiArrays
extends java.lang.Object

An tool class to help sort two related array by one at the same time. In all the sort functions, the first array is used to sort the two array.

Author:
Zhang Xiatian

Constructor Summary
BiArrays()
           
 
Method Summary
private static int med3(double[][] array, int a, int b, int c, int col)
           
private static int med3(double[] array, int a, int b, int c)
           
private static int med3(float[] array, int a, int b, int c)
           
private static int med3(int[] array, int a, int b, int c)
           
static void sort(double[][] array, int col)
           
static void sort(double[] array, boolean[] vArray)
           
static void sort(double[] array, double[] vArray)
           
static void sort(double[] array, int[] vArray)
           
static void sort(float[] array, boolean[] vArray)
           
static void sort(float[] array, double[] vArray)
           
static void sort(float[] array, int[] vArray)
           
static void sort(float[] array, java.lang.Object[] vArray)
           
static void sort(int[] array, double[] vArray)
           
static void sort(int[] array, float[] vArray)
           
static void sort(int[] array, int[] vArray)
           
static void sort(int[] array, java.lang.Object[] vArray)
           
static void sort(int[] array, short[] vArray)
           
private static void sort(int start, int end, double[][] array, int col)
           
private static void sort(int start, int end, double[] array, boolean[] vArray)
           
private static void sort(int start, int end, double[] array, double[] vArray)
           
private static void sort(int start, int end, double[] array, int[] vArray)
           
private static void sort(int start, int end, float[] array, boolean[] vArray)
           
private static void sort(int start, int end, float[] array, double[] vArray)
           
private static void sort(int start, int end, float[] array, int[] vArray)
           
private static void sort(int start, int end, float[] array, java.lang.Object[] vArray)
           
private static void sort(int start, int end, int[] array, double[] vArray)
           
static void sort(int start, int end, int[] array, float[] vArray)
           
private static void sort(int start, int end, int[] array, int[] vArray)
           
private static void sort(int start, int end, int[] array, java.lang.Object[] vArray)
           
static void sort(int start, int end, int[] array, short[] vArray)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BiArrays

public BiArrays()
Method Detail

sort

public static void sort(int[] array,
                        java.lang.Object[] vArray)

sort

public static void sort(int[] array,
                        double[] vArray)

sort

public static void sort(int[] array,
                        float[] vArray)

sort

public static void sort(double[] array,
                        int[] vArray)

sort

public static void sort(double[] array,
                        boolean[] vArray)

sort

public static void sort(float[] array,
                        boolean[] vArray)

sort

public static void sort(double[] array,
                        double[] vArray)

sort

public static void sort(float[] array,
                        int[] vArray)

sort

public static void sort(int[] array,
                        int[] vArray)

sort

public static void sort(int[] array,
                        short[] vArray)

sort

public static void sort(double[][] array,
                        int col)

med3

private static int med3(int[] array,
                        int a,
                        int b,
                        int c)

sort

private static void sort(int start,
                         int end,
                         int[] array,
                         java.lang.Object[] vArray)

sort

private static void sort(int start,
                         int end,
                         int[] array,
                         double[] vArray)

sort

public static void sort(float[] array,
                        java.lang.Object[] vArray)

sort

public static void sort(float[] array,
                        double[] vArray)

med3

private static int med3(float[] array,
                        int a,
                        int b,
                        int c)

sort

private static void sort(int start,
                         int end,
                         float[] array,
                         java.lang.Object[] vArray)

sort

private static void sort(int start,
                         int end,
                         float[] array,
                         boolean[] vArray)

sort

private static void sort(int start,
                         int end,
                         float[] array,
                         double[] vArray)

med3

private static int med3(double[] array,
                        int a,
                        int b,
                        int c)

sort

private static void sort(int start,
                         int end,
                         double[] array,
                         int[] vArray)

sort

private static void sort(int start,
                         int end,
                         double[] array,
                         boolean[] vArray)

sort

private static void sort(int start,
                         int end,
                         int[] array,
                         int[] vArray)

sort

public static void sort(int start,
                        int end,
                        int[] array,
                        short[] vArray)

sort

private static void sort(int start,
                         int end,
                         float[] array,
                         int[] vArray)

sort

public static void sort(int start,
                        int end,
                        int[] array,
                        float[] vArray)

sort

private static void sort(int start,
                         int end,
                         double[] array,
                         double[] vArray)

med3

private static int med3(double[][] array,
                        int a,
                        int b,
                        int c,
                        int col)

sort

private static void sort(int start,
                         int end,
                         double[][] array,
                         int col)