public class ArrayUtils extends Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
add(byte[] ds,
byte x)
Add a constant to all elements and return the input
|
static double[] |
add(double[] ds,
double x)
Add a constant to all elements and return the input
|
static float[] |
add(float[] ds,
float x)
Add a constant to all elements and return the input
|
static int[] |
add(int[] ds,
int x)
Add a constant to all elements and return the input
|
static long[] |
add(long[] ds,
long x)
Add a constant to all elements and return the input
|
static short[] |
add(short[] ds,
short x)
Add a constant to all elements and return the input
|
static int[] |
colSum(byte[][] array)
Compute the sum of values in each column of a 2d array
|
static double[] |
colSum(double[][] array)
Compute the sum of values in each column of a 2d array
|
static float[] |
colSum(float[][] array)
Compute the sum of values in each column of a 2d array
|
static long[] |
colSum(int[][] array)
Compute the sum of values in each column of a 2d array
|
static long[] |
colSum(long[][] array)
Compute the sum of values in each column of a 2d array
|
static int[] |
colSum(short[][] array)
Compute the sum of values in each column of a 2d array
|
static byte[] |
concatenate(byte[]... arrays)
Concatenate multiple arrays into a single new array.
|
static byte[][] |
concatenate(byte[][]... arrays)
Concatenate multiple arrays into a single new array.
|
static double[] |
concatenate(double[]... arrays)
Concatenate multiple arrays into a single new array.
|
static double[][] |
concatenate(double[][]... arrays)
Concatenate multiple arrays into a single new array.
|
static float[] |
concatenate(float[]... arrays)
Concatenate multiple arrays into a single new array.
|
static float[][] |
concatenate(float[][]... arrays)
Concatenate multiple arrays into a single new array.
|
static int[] |
concatenate(int[]... arrays)
Concatenate multiple arrays into a single new array.
|
static int[][] |
concatenate(int[][]... arrays)
Concatenate multiple arrays into a single new array.
|
static long[] |
concatenate(long[]... arrays)
Concatenate multiple arrays into a single new array.
|
static long[][] |
concatenate(long[][]... arrays)
Concatenate multiple arrays into a single new array.
|
static short[] |
concatenate(short[]... arrays)
Concatenate multiple arrays into a single new array.
|
static short[][] |
concatenate(short[][]... arrays)
Concatenate multiple arrays into a single new array.
|
static <T> T[] |
concatenate(T[]... arrays)
Concatenate multiple arrays into a single new array.
|
Byte[] |
convert(byte[] array)
Convert from Byte[] to Byte[].
|
byte[] |
convert(Byte[] array)
Convert from Byte[] to byte[].
|
Double[] |
convert(double[] array)
Convert from Double[] to Double[].
|
double[] |
convert(Double[] array)
Convert from Double[] to double[].
|
Float[] |
convert(float[] array)
Convert from Float[] to Float[].
|
float[] |
convert(Float[] array)
Convert from Float[] to float[].
|
Integer[] |
convert(int[] array)
Convert from Int[] to Integer[].
|
int[] |
convert(Integer[] array)
Convert from Integer[] to int[].
|
Long[] |
convert(long[] array)
Convert from Long[] to Long[].
|
long[] |
convert(Long[] array)
Convert from Long[] to long[].
|
Short[] |
convert(short[] array)
Convert from Short[] to Short[].
|
short[] |
convert(Short[] array)
Convert from Short[] to short[].
|
static double[] |
convertToDouble(byte[] array)
Convert a byte array to a double array.
|
static double[][] |
convertToDouble(byte[][] array)
Convert a byte array to a double array.
|
static double[] |
convertToDouble(double[] array)
Convert a double array to a double array.
|
static double[][] |
convertToDouble(double[][] array)
Convert a double array to a double array.
|
static double[] |
convertToDouble(float[] array)
Convert a float array to a double array.
|
static double[][] |
convertToDouble(float[][] array)
Convert a float array to a double array.
|
static double[] |
convertToDouble(int[] array)
Convert a int array to a double array.
|
static double[][] |
convertToDouble(int[][] array)
Convert a int array to a double array.
|
static double[] |
convertToDouble(long[] array)
Convert a long array to a double array.
|
static double[][] |
convertToDouble(long[][] array)
Convert a long array to a double array.
|
static double[] |
convertToDouble(short[] array)
Convert a short array to a double array.
|
static double[][] |
convertToDouble(short[][] array)
Convert a short array to a double array.
|
static float[] |
convertToFloat(byte[] array)
Convert a byte array to a float array.
|
static float[][] |
convertToFloat(byte[][] array)
Convert a byte array to a float array.
|
static float[] |
convertToFloat(double[] array)
Convert a double array to a float array.
|
static float[][] |
convertToFloat(double[][] array)
Convert a double array to a float array.
|
static float[] |
convertToFloat(float[] array)
Convert a float array to a float array.
|
static float[][] |
convertToFloat(float[][] array)
Convert a float array to a float array.
|
static float[] |
convertToFloat(int[] array)
Convert a int array to a float array.
|
static float[][] |
convertToFloat(int[][] array)
Convert a int array to a float array.
|
static float[] |
convertToFloat(long[] array)
Convert a long array to a float array.
|
static float[][] |
convertToFloat(long[][] array)
Convert a long array to a float array.
|
static float[] |
convertToFloat(short[] array)
Convert a short array to a float array.
|
static float[][] |
convertToFloat(short[][] array)
Convert a short array to a float array.
|
static int[] |
cumulativeSum(byte[] vector)
Compute the cumulative sum of values in an array
|
static double[] |
cumulativeSum(double[] vector)
Compute the cumulative sum of values in an array
|
static float[] |
cumulativeSum(float[] vector)
Compute the cumulative sum of values in an array
|
static long[] |
cumulativeSum(int[] vector)
Compute the cumulative sum of values in an array
|
static long[] |
cumulativeSum(long[] vector)
Compute the cumulative sum of values in an array
|
static int[] |
cumulativeSum(short[] vector)
Compute the cumulative sum of values in an array
|
static byte[] |
divide(byte[] fs,
byte x)
Divide by a constant, all elements and return the input
|
static double[] |
divide(double[] fs,
double x)
Divide by a constant, all elements and return the input
|
static float[] |
divide(float[] fs,
float x)
Divide by a constant, all elements and return the input
|
static int[] |
divide(int[] fs,
int x)
Divide by a constant, all elements and return the input
|
static long[] |
divide(long[] fs,
long x)
Divide by a constant, all elements and return the input
|
static short[] |
divide(short[] fs,
short x)
Divide by a constant, all elements and return the input
|
static byte[][] |
fill(byte[][] a1,
byte i)
Fill the array with the value
|
static byte[] |
fill(byte[] a1,
byte i)
Fill the array with the value
|
static byte[] |
fill(byte[] a1,
byte i,
int s,
int l)
Fill the array with the value from the start index for the length given
|
static double[][] |
fill(double[][] a1,
double i)
Fill the array with the value
|
static double[] |
fill(double[] a1,
double i)
Fill the array with the value
|
static double[] |
fill(double[] a1,
double i,
int s,
int l)
Fill the array with the value from the start index for the length given
|
static float[][] |
fill(float[][] a1,
float i)
Fill the array with the value
|
static float[] |
fill(float[] a1,
float i)
Fill the array with the value
|
static float[] |
fill(float[] a1,
float i,
int s,
int l)
Fill the array with the value from the start index for the length given
|
static int[] |
fill(int[] array)
Fills the array with ordinal values
|
static int[][] |
fill(int[][] a1,
int i)
Fill the array with the value
|
static int[] |
fill(int[] a1,
int i)
Fill the array with the value
|
static int[] |
fill(int[] a1,
int i,
int s,
int l)
Fill the array with the value from the start index for the length given
|
static long[][] |
fill(long[][] a1,
long i)
Fill the array with the value
|
static long[] |
fill(long[] a1,
long i)
Fill the array with the value
|
static long[] |
fill(long[] a1,
long i,
int s,
int l)
Fill the array with the value from the start index for the length given
|
static short[][] |
fill(short[][] a1,
short i)
Fill the array with the value
|
static short[] |
fill(short[] a1,
short i)
Fill the array with the value
|
static short[] |
fill(short[] a1,
short i,
int s,
int l)
Fill the array with the value from the start index for the length given
|
static <T> T |
firstNonNull(T[] array)
Return the first non-null item from an array.
|
static int[] |
indexSort(byte[] arr)
Determine the indices of the given array if it were to be sorted into
ascending order.
|
static int[] |
indexSort(double[] arr)
Determine the indices of the given array if it were to be sorted into
ascending order.
|
static int[] |
indexSort(float[] arr)
Determine the indices of the given array if it were to be sorted into
ascending order.
|
static int[] |
indexSort(int[] arr)
Determine the indices of the given array if it were to be sorted into
ascending order.
|
static int[] |
indexSort(long[] arr)
Determine the indices of the given array if it were to be sorted into
ascending order.
|
static int[] |
indexSort(short[] arr)
Determine the indices of the given array if it were to be sorted into
ascending order.
|
static int |
maxIndex(byte[] arr)
Returns the index to the biggest value in the array.
|
static int |
maxIndex(double[] arr)
Returns the index to the biggest value in the array.
|
static int |
maxIndex(float[] arr)
Returns the index to the biggest value in the array.
|
static int |
maxIndex(int[] arr)
Returns the index to the biggest value in the array.
|
static int |
maxIndex(long[] arr)
Returns the index to the biggest value in the array.
|
static int |
maxIndex(short[] arr)
Returns the index to the biggest value in the array.
|
static byte |
maxValue(byte[] arr)
Returns the largest value in the array.
|
static double |
maxValue(double[] arr)
Returns the largest value in the array.
|
static float |
maxValue(float[] arr)
Returns the largest value in the array.
|
static int |
maxValue(int[] arr)
Returns the largest value in the array.
|
static long |
maxValue(long[] arr)
Returns the largest value in the array.
|
static short |
maxValue(short[] arr)
Returns the largest value in the array.
|
static int |
minIndex(byte[] arr)
Returns the index to the smallest value in the array.
|
static int |
minIndex(double[] arr)
Returns the index to the smallest value in the array.
|
static int |
minIndex(float[] arr)
Returns the index to the smallest value in the array.
|
static int |
minIndex(int[] arr)
Returns the index to the smallest value in the array.
|
static int |
minIndex(long[] arr)
Returns the index to the smallest value in the array.
|
static int |
minIndex(short[] arr)
Returns the index to the smallest value in the array.
|
static byte |
minValue(byte[] arr)
Returns the smallest value in the array.
|
static double |
minValue(double[] arr)
Returns the smallest value in the array.
|
static float |
minValue(float[] arr)
Returns the smallest value in the array.
|
static int |
minValue(int[] arr)
Returns the smallest value in the array.
|
static long |
minValue(long[] arr)
Returns the smallest value in the array.
|
static short |
minValue(short[] arr)
Returns the smallest value in the array.
|
static byte[][] |
multiply(byte[][] ds,
byte x)
Multiply by a constant all elements and return the input
|
static byte[][] |
multiply(byte[][] a1,
byte[][] a2)
Element-wise multiplication, overwriting a1.
|
static byte[] |
multiply(byte[] ds,
byte x)
Multiply by a constant all elements and return the input
|
static byte[] |
multiply(byte[] a1,
byte[] a2)
Element-wise multiplication, overwriting a1
|
static double[][] |
multiply(double[][] ds,
double x)
Multiply by a constant all elements and return the input
|
static double[][] |
multiply(double[][] a1,
double[][] a2)
Element-wise multiplication, overwriting a1.
|
static double[] |
multiply(double[] ds,
double x)
Multiply by a constant all elements and return the input
|
static double[] |
multiply(double[] a1,
double[] a2)
Element-wise multiplication, overwriting a1
|
static float[][] |
multiply(float[][] ds,
float x)
Multiply by a constant all elements and return the input
|
static float[][] |
multiply(float[][] a1,
float[][] a2)
Element-wise multiplication, overwriting a1.
|
static float[] |
multiply(float[] ds,
float x)
Multiply by a constant all elements and return the input
|
static float[] |
multiply(float[] a1,
float[] a2)
Element-wise multiplication, overwriting a1
|
static int[][] |
multiply(int[][] ds,
int x)
Multiply by a constant all elements and return the input
|
static int[][] |
multiply(int[][] a1,
int[][] a2)
Element-wise multiplication, overwriting a1.
|
static int[] |
multiply(int[] ds,
int x)
Multiply by a constant all elements and return the input
|
static int[] |
multiply(int[] a1,
int[] a2)
Element-wise multiplication, overwriting a1
|
static long[][] |
multiply(long[][] ds,
long x)
Multiply by a constant all elements and return the input
|
static long[][] |
multiply(long[][] a1,
long[][] a2)
Element-wise multiplication, overwriting a1.
|
static long[] |
multiply(long[] ds,
long x)
Multiply by a constant all elements and return the input
|
static long[] |
multiply(long[] a1,
long[] a2)
Element-wise multiplication, overwriting a1
|
static short[][] |
multiply(short[][] ds,
short x)
Multiply by a constant all elements and return the input
|
static short[][] |
multiply(short[][] a1,
short[][] a2)
Element-wise multiplication, overwriting a1.
|
static short[] |
multiply(short[] ds,
short x)
Multiply by a constant all elements and return the input
|
static short[] |
multiply(short[] a1,
short[] a2)
Element-wise multiplication, overwriting a1
|
static double[] |
normalise(double[] array)
Normalise length of array to 1.0.
|
static float[] |
normalise(float[] array)
Normalise length of array to 1.0.
|
static double[] |
normaliseMax(double[] array)
Normalise and scale the values so that the maximum value in the array is
1.
|
static double[] |
normaliseMax(double[] array,
double max)
Normalise and scale the values so that the maximum value in the array is
max
|
static void |
parallelQuicksortAscending(byte[] main,
byte[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(byte[] main,
byte[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(byte[] main,
double[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(byte[] main,
double[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(byte[] main,
float[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(byte[] main,
float[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(byte[] main,
int[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(byte[] main,
int[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(byte[] main,
long[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(byte[] main,
long[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(byte[] main,
short[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(byte[] main,
short[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(double[] main,
byte[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(double[] main,
byte[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(double[] main,
double[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(double[] main,
double[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(double[] main,
float[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(double[] main,
float[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(double[] main,
int[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(double[] main,
int[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(double[] main,
long[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(double[] main,
long[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(double[] main,
short[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(double[] main,
short[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(float[] main,
byte[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(float[] main,
byte[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(float[] main,
double[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(float[] main,
double[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(float[] main,
float[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(float[] main,
float[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(float[] main,
int[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(float[] main,
int[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(float[] main,
long[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(float[] main,
long[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(float[] main,
short[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(float[] main,
short[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(int[] main,
byte[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(int[] main,
byte[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(int[] main,
double[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(int[] main,
double[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(int[] main,
float[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(int[] main,
float[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(int[] main,
int[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(int[] main,
int[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(int[] main,
long[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(int[] main,
long[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(int[] main,
short[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(int[] main,
short[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(long[] main,
byte[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(long[] main,
byte[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(long[] main,
double[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(long[] main,
double[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(long[] main,
float[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(long[] main,
float[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(long[] main,
int[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(long[] main,
int[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(long[] main,
long[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(long[] main,
long[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(long[] main,
short[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(long[] main,
short[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(short[] main,
byte[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(short[] main,
byte[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(short[] main,
double[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(short[] main,
double[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(short[] main,
float[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(short[] main,
float[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(short[] main,
int[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(short[] main,
int[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(short[] main,
long[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(short[] main,
long[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(short[] main,
short[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortAscending(short[] main,
short[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(byte[] main,
byte[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(byte[] main,
byte[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(byte[] main,
double[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(byte[] main,
double[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(byte[] main,
float[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(byte[] main,
float[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(byte[] main,
int[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(byte[] main,
int[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(byte[] main,
long[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(byte[] main,
long[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(byte[] main,
short[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(byte[] main,
short[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(double[] main,
byte[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(double[] main,
byte[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(double[] main,
double[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(double[] main,
double[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(double[] main,
float[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(double[] main,
float[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(double[] main,
int[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(double[] main,
int[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(double[] main,
long[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(double[] main,
long[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(double[] main,
short[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(double[] main,
short[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(float[] main,
byte[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(float[] main,
byte[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(float[] main,
double[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(float[] main,
double[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(float[] main,
float[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(float[] main,
float[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(float[] main,
int[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(float[] main,
int[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(float[] main,
long[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(float[] main,
long[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(float[] main,
short[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(float[] main,
short[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(int[] main,
byte[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(int[] main,
byte[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(int[] main,
double[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(int[] main,
double[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(int[] main,
float[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(int[] main,
float[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(int[] main,
int[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(int[] main,
int[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(int[] main,
long[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(int[] main,
long[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(int[] main,
short[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(int[] main,
short[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(long[] main,
byte[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(long[] main,
byte[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(long[] main,
double[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(long[] main,
double[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(long[] main,
float[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(long[] main,
float[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(long[] main,
int[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(long[] main,
int[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(long[] main,
long[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(long[] main,
long[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(long[] main,
short[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(long[] main,
short[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(short[] main,
byte[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(short[] main,
byte[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(short[] main,
double[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(short[] main,
double[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(short[] main,
float[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(short[] main,
float[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(short[] main,
int[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(short[] main,
int[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(short[] main,
long[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(short[] main,
long[] indices,
int left,
int right)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(short[] main,
short[] indices)
Sort parallel arrays.
|
static void |
parallelQuicksortDescending(short[] main,
short[] indices,
int left,
int right)
Sort parallel arrays.
|
static double |
pnorm(byte[] array,
int p)
Compute the p-norm of the array
|
static double |
pnorm(double[] array,
int p)
Compute the p-norm of the array
|
static double |
pnorm(float[] array,
int p)
Compute the p-norm of the array
|
static double |
pnorm(int[] array,
int p)
Compute the p-norm of the array
|
static double |
pnorm(long[] array,
int p)
Compute the p-norm of the array
|
static double |
pnorm(short[] array,
int p)
Compute the p-norm of the array
|
static byte |
quickSelect(byte[] arr,
int n)
Quick Select algorithm for getting the nth item from the array as if it
were sorted.
|
static byte |
quickSelect(byte[] arr,
int n,
int low,
int high)
Quick Select algorithm for getting the nth item from a sub-array as if it
were sorted.
|
static double |
quickSelect(double[] arr,
int n)
Quick Select algorithm for getting the nth item from the array as if it
were sorted.
|
static double |
quickSelect(double[] arr,
int n,
int low,
int high)
Quick Select algorithm for getting the nth item from a sub-array as if it
were sorted.
|
static float |
quickSelect(float[] arr,
int n)
Quick Select algorithm for getting the nth item from the array as if it
were sorted.
|
static float |
quickSelect(float[] arr,
int n,
int low,
int high)
Quick Select algorithm for getting the nth item from a sub-array as if it
were sorted.
|
static int |
quickSelect(int[] arr,
int n)
Quick Select algorithm for getting the nth item from the array as if it
were sorted.
|
static int |
quickSelect(int[] arr,
int n,
int low,
int high)
Quick Select algorithm for getting the nth item from a sub-array as if it
were sorted.
|
static long |
quickSelect(long[] arr,
int n)
Quick Select algorithm for getting the nth item from the array as if it
were sorted.
|
static long |
quickSelect(long[] arr,
int n,
int low,
int high)
Quick Select algorithm for getting the nth item from a sub-array as if it
were sorted.
|
static short |
quickSelect(short[] arr,
int n)
Quick Select algorithm for getting the nth item from the array as if it
were sorted.
|
static short |
quickSelect(short[] arr,
int n,
int low,
int high)
Quick Select algorithm for getting the nth item from a sub-array as if it
were sorted.
|
static int[] |
range(int start,
int length)
Extract a range
|
static byte[] |
reshape(byte[][] a)
Reshape a 2D array into a 1D array
|
static byte[][] |
reshape(byte[] a,
byte[][] out)
Reshape a 1D array into a 2D array
|
static byte[][] |
reshape(byte[] a,
int width,
int height)
Reshape a 1D array into a 2D array
|
static double[] |
reshape(double[][] a)
Reshape a 2D array into a 1D array
|
static double[][] |
reshape(double[] a,
double[][] out)
Reshape a 1D array into a 2D array
|
static double[][] |
reshape(double[] a,
int width,
int height)
Reshape a 1D array into a 2D array
|
static float[] |
reshape(float[][] a)
Reshape a 2D array into a 1D array
|
static float[][] |
reshape(float[] a,
float[][] out)
Reshape a 1D array into a 2D array
|
static float[][] |
reshape(float[] a,
int width,
int height)
Reshape a 1D array into a 2D array
|
static int[] |
reshape(int[][] a)
Reshape a 2D array into a 1D array
|
static int[][] |
reshape(int[] a,
int[][] out)
Reshape a 1D array into a 2D array
|
static int[][] |
reshape(int[] a,
int width,
int height)
Reshape a 1D array into a 2D array
|
static long[] |
reshape(long[][] a)
Reshape a 2D array into a 1D array
|
static long[][] |
reshape(long[] a,
int width,
int height)
Reshape a 1D array into a 2D array
|
static long[][] |
reshape(long[] a,
long[][] out)
Reshape a 1D array into a 2D array
|
static short[] |
reshape(short[][] a)
Reshape a 2D array into a 1D array
|
static short[][] |
reshape(short[] a,
int width,
int height)
Reshape a 1D array into a 2D array
|
static short[][] |
reshape(short[] a,
short[][] out)
Reshape a 1D array into a 2D array
|
static double[] |
reshapeDouble(byte[][] a)
Reshape a 2D array into a 1D array of doubles
|
static double[] |
reshapeDouble(double[][] a)
Reshape a 2D array into a 1D array of doubles
|
static double[] |
reshapeDouble(float[][] a)
Reshape a 2D array into a 1D array of doubles
|
static double[] |
reshapeDouble(int[][] a)
Reshape a 2D array into a 1D array of doubles
|
static double[] |
reshapeDouble(long[][] a)
Reshape a 2D array into a 1D array of doubles
|
static double[] |
reshapeDouble(short[][] a)
Reshape a 2D array into a 1D array of doubles
|
static float[][] |
reshapeFloat(double[] a,
float[][] out)
Reshape a 1D array into a 2D array
|
static float[][] |
reshapeFloat(double[] a,
int width,
int height)
Reshape a 1D array into a 2D array
|
static byte[] |
reverse(byte[] ds)
Reverse the elements in the input and return the input.
|
static double[] |
reverse(double[] ds)
Reverse the elements in the input and return the input.
|
static float[] |
reverse(float[] ds)
Reverse the elements in the input and return the input.
|
static int[] |
reverse(int[] ds)
Reverse the elements in the input and return the input.
|
static long[] |
reverse(long[] ds)
Reverse the elements in the input and return the input.
|
static short[] |
reverse(short[] ds)
Reverse the elements in the input and return the input.
|
static int[] |
rowSum(byte[][] array)
Compute the sum of values in each row of a 2d array
|
static double[] |
rowSum(double[][] array)
Compute the sum of values in each row of a 2d array
|
static float[] |
rowSum(float[][] array)
Compute the sum of values in each row of a 2d array
|
static long[] |
rowSum(int[][] array)
Compute the sum of values in each row of a 2d array
|
static long[] |
rowSum(long[][] array)
Compute the sum of values in each row of a 2d array
|
static int[] |
rowSum(short[][] array)
Compute the sum of values in each row of a 2d array
|
static int[] |
search(byte[] a,
byte value)
Find the given value in the array, and return all indices at which it occurs.
|
static int[] |
search(double[] a,
double value)
Find the given value in the array, and return all indices at which it occurs.
|
static int[] |
search(float[] a,
float value)
Find the given value in the array, and return all indices at which it occurs.
|
static int[] |
search(int[] a,
int value)
Find the given value in the array, and return all indices at which it occurs.
|
static int[] |
search(long[] a,
long value)
Find the given value in the array, and return all indices at which it occurs.
|
static int[] |
search(short[] a,
short value)
Find the given value in the array, and return all indices at which it occurs.
|
static byte[][] |
subtract(byte[][] a1,
byte[][] a2)
Element-wise subtraction of two arrays.
|
static byte[] |
subtract(byte[] a1,
byte s)
Subtracts
s from all elements in a1 overwriting
the array. |
static byte[] |
subtract(byte[] a1,
byte[] a2)
Element-wise subtraction of two arrays.
|
static double[][] |
subtract(double[][] a1,
double[][] a2)
Element-wise subtraction of two arrays.
|
static double[] |
subtract(double[] a1,
double s)
Subtracts
s from all elements in a1 overwriting
the array. |
static double[] |
subtract(double[] a1,
double[] a2)
Element-wise subtraction of two arrays.
|
static float[][] |
subtract(float[][] a1,
float[][] a2)
Element-wise subtraction of two arrays.
|
static float[] |
subtract(float[] a1,
float s)
Subtracts
s from all elements in a1 overwriting
the array. |
static float[] |
subtract(float[] a1,
float[] a2)
Element-wise subtraction of two arrays.
|
static int[][] |
subtract(int[][] a1,
int[][] a2)
Element-wise subtraction of two arrays.
|
static int[] |
subtract(int[] a1,
int s)
Subtracts
s from all elements in a1 overwriting
the array. |
static int[] |
subtract(int[] a1,
int[] a2)
Element-wise subtraction of two arrays.
|
static long[][] |
subtract(long[][] a1,
long[][] a2)
Element-wise subtraction of two arrays.
|
static long[] |
subtract(long[] a1,
long s)
Subtracts
s from all elements in a1 overwriting
the array. |
static long[] |
subtract(long[] a1,
long[] a2)
Element-wise subtraction of two arrays.
|
static short[][] |
subtract(short[][] a1,
short[][] a2)
Element-wise subtraction of two arrays.
|
static short[] |
subtract(short[] a1,
short s)
Subtracts
s from all elements in a1 overwriting
the array. |
static short[] |
subtract(short[] a1,
short[] a2)
Element-wise subtraction of two arrays.
|
static byte[][] |
sum(byte[][] a1,
byte[][] a2)
Element-wise summation of two arrays, output writes over first array
|
static byte[] |
sum(byte[] a1,
byte[] a2)
Element-wise summation of two arrays, output writes over first array
|
static double[][] |
sum(double[][] a1,
double[][] a2)
Element-wise summation of two arrays, output writes over first array
|
static double[] |
sum(double[] a1,
double[] a2)
Element-wise summation of two arrays, output writes over first array
|
static float[][] |
sum(float[][] a1,
float[][] a2)
Element-wise summation of two arrays, output writes over first array
|
static float[] |
sum(float[] a1,
float[] a2)
Element-wise summation of two arrays, output writes over first array
|
static int[][] |
sum(int[][] a1,
int[][] a2)
Element-wise summation of two arrays, output writes over first array
|
static int[] |
sum(int[] a1,
int[] a2)
Element-wise summation of two arrays, output writes over first array
|
static long[][] |
sum(long[][] a1,
long[][] a2)
Element-wise summation of two arrays, output writes over first array
|
static long[] |
sum(long[] a1,
long[] a2)
Element-wise summation of two arrays, output writes over first array
|
static short[][] |
sum(short[][] a1,
short[][] a2)
Element-wise summation of two arrays, output writes over first array
|
static short[] |
sum(short[] a1,
short[] a2)
Element-wise summation of two arrays, output writes over first array
|
static int |
sumValues(byte[] vector)
Compute the sum of values in an array
|
static int |
sumValues(byte[][] array)
Compute the sum of values in a 2d array
|
static double |
sumValues(double[] vector)
Compute the sum of values in an array
|
static double |
sumValues(double[][] array)
Compute the sum of values in a 2d array
|
static float |
sumValues(float[] vector)
Compute the sum of values in an array
|
static float |
sumValues(float[][] array)
Compute the sum of values in a 2d array
|
static long |
sumValues(int[] vector)
Compute the sum of values in an array
|
static long |
sumValues(int[][] array)
Compute the sum of values in a 2d array
|
static long |
sumValues(long[] vector)
Compute the sum of values in an array
|
static long |
sumValues(long[][] array)
Compute the sum of values in a 2d array
|
static int |
sumValues(short[] vector)
Compute the sum of values in an array
|
static int |
sumValues(short[][] array)
Compute the sum of values in a 2d array
|
static int |
sumValuesSquared(byte[] vector)
Compute the sum of values squared in an array
|
static double |
sumValuesSquared(double[] vector)
Compute the sum of values squared in an array
|
static float |
sumValuesSquared(float[] vector)
Compute the sum of values squared in an array
|
static long |
sumValuesSquared(int[] vector)
Compute the sum of values squared in an array
|
static long |
sumValuesSquared(long[] vector)
Compute the sum of values squared in an array
|
static int |
sumValuesSquared(short[] vector)
Compute the sum of values squared in an array
|
static String |
toString(byte[] arr,
String fmt)
Format the array as a string, using the provided format
string to control how each value is printed.
|
static String |
toString(double[] arr,
String fmt)
Format the array as a string, using the provided format
string to control how each value is printed.
|
static String |
toString(float[] arr,
String fmt)
Format the array as a string, using the provided format
string to control how each value is printed.
|
static String |
toString(int[] arr,
String fmt)
Format the array as a string, using the provided format
string to control how each value is printed.
|
static String |
toString(long[] arr,
String fmt)
Format the array as a string, using the provided format
string to control how each value is printed.
|
static String |
toString(short[] arr,
String fmt)
Format the array as a string, using the provided format
string to control how each value is printed.
|
static String |
toString(String[] s,
String glue)
Convert the array to a
String by joining the elements with the
given glue. |
static byte[][] |
truncate(byte[][] array,
int index)
Truncates every element in the given array to the given size.
|
static byte[] |
truncate(byte[] array,
int index)
Truncates the given array to the given size.
|
static double[][] |
truncate(double[][] array,
int index)
Truncates every element in the given array to the given size.
|
static double[] |
truncate(double[] array,
int index)
Truncates the given array to the given size.
|
static float[][] |
truncate(float[][] array,
int index)
Truncates every element in the given array to the given size.
|
static float[] |
truncate(float[] array,
int index)
Truncates the given array to the given size.
|
static int[][] |
truncate(int[][] array,
int index)
Truncates every element in the given array to the given size.
|
static int[] |
truncate(int[] array,
int index)
Truncates the given array to the given size.
|
static long[][] |
truncate(long[][] array,
int index)
Truncates every element in the given array to the given size.
|
static long[] |
truncate(long[] array,
int index)
Truncates the given array to the given size.
|
static short[][] |
truncate(short[][] array,
int index)
Truncates every element in the given array to the given size.
|
static short[] |
truncate(short[] array,
int index)
Truncates the given array to the given size.
|
public static String toString(double[] arr, String fmt)
arr
- array of doublefmt
- format string for each elementpublic static String toString(float[] arr, String fmt)
arr
- array of floatfmt
- format string for each elementpublic static String toString(int[] arr, String fmt)
arr
- array of intfmt
- format string for each elementpublic static String toString(long[] arr, String fmt)
arr
- array of longfmt
- format string for each elementpublic static String toString(byte[] arr, String fmt)
arr
- array of bytefmt
- format string for each elementpublic static String toString(short[] arr, String fmt)
arr
- array of shortfmt
- format string for each elementpublic static double maxValue(double[] arr)
arr
- array of doublepublic static float maxValue(float[] arr)
arr
- array of floatpublic static int maxValue(int[] arr)
arr
- array of intpublic static long maxValue(long[] arr)
arr
- array of longpublic static byte maxValue(byte[] arr)
arr
- array of bytepublic static short maxValue(short[] arr)
arr
- array of shortpublic static double minValue(double[] arr)
arr
- array of doublepublic static float minValue(float[] arr)
arr
- array of floatpublic static int minValue(int[] arr)
arr
- array of intpublic static long minValue(long[] arr)
arr
- array of longpublic static byte minValue(byte[] arr)
arr
- array of bytepublic static short minValue(short[] arr)
arr
- array of shortpublic static int maxIndex(double[] arr)
arr
- array of doublepublic static int maxIndex(float[] arr)
arr
- array of floatpublic static int maxIndex(int[] arr)
arr
- array of intpublic static int maxIndex(long[] arr)
arr
- array of longpublic static int maxIndex(byte[] arr)
arr
- array of bytepublic static int maxIndex(short[] arr)
arr
- array of shortpublic static int minIndex(double[] arr)
arr
- array of doublepublic static int minIndex(float[] arr)
arr
- array of floatpublic static int minIndex(int[] arr)
arr
- array of intpublic static int minIndex(long[] arr)
arr
- array of longpublic static int minIndex(byte[] arr)
arr
- array of bytepublic static int minIndex(short[] arr)
arr
- array of shortpublic static double[][] sum(double[][] a1, double[][] a2)
a1
- first arraya2
- second arraypublic static double[] sum(double[] a1, double[] a2)
a1
- first arraya2
- second arraypublic static float[][] sum(float[][] a1, float[][] a2)
a1
- first arraya2
- second arraypublic static float[] sum(float[] a1, float[] a2)
a1
- first arraya2
- second arraypublic static int[][] sum(int[][] a1, int[][] a2)
a1
- first arraya2
- second arraypublic static int[] sum(int[] a1, int[] a2)
a1
- first arraya2
- second arraypublic static long[][] sum(long[][] a1, long[][] a2)
a1
- first arraya2
- second arraypublic static long[] sum(long[] a1, long[] a2)
a1
- first arraya2
- second arraypublic static byte[][] sum(byte[][] a1, byte[][] a2)
a1
- first arraya2
- second arraypublic static byte[] sum(byte[] a1, byte[] a2)
a1
- first arraya2
- second arraypublic static short[][] sum(short[][] a1, short[][] a2)
a1
- first arraya2
- second arraypublic static short[] sum(short[] a1, short[] a2)
a1
- first arraya2
- second arraypublic static double[][] subtract(double[][] a1, double[][] a2)
a1
- first arraya2
- second arraypublic static double[] subtract(double[] a1, double[] a2)
a1
- first arraya2
- second arraypublic static float[][] subtract(float[][] a1, float[][] a2)
a1
- first arraya2
- second arraypublic static float[] subtract(float[] a1, float[] a2)
a1
- first arraya2
- second arraypublic static int[][] subtract(int[][] a1, int[][] a2)
a1
- first arraya2
- second arraypublic static int[] subtract(int[] a1, int[] a2)
a1
- first arraya2
- second arraypublic static long[][] subtract(long[][] a1, long[][] a2)
a1
- first arraya2
- second arraypublic static long[] subtract(long[] a1, long[] a2)
a1
- first arraya2
- second arraypublic static byte[][] subtract(byte[][] a1, byte[][] a2)
a1
- first arraya2
- second arraypublic static byte[] subtract(byte[] a1, byte[] a2)
a1
- first arraya2
- second arraypublic static short[][] subtract(short[][] a1, short[][] a2)
a1
- first arraya2
- second arraypublic static short[] subtract(short[] a1, short[] a2)
a1
- first arraya2
- second arraypublic static double[] subtract(double[] a1, double s)
s
from all elements in a1
overwriting
the array. This is syntactic sugar for add( a1, -s )
.a1
- The arrays
- The scalarpublic static float[] subtract(float[] a1, float s)
s
from all elements in a1
overwriting
the array. This is syntactic sugar for add( a1, -s )
.a1
- The arrays
- The scalarpublic static int[] subtract(int[] a1, int s)
s
from all elements in a1
overwriting
the array. This is syntactic sugar for add( a1, -s )
.a1
- The arrays
- The scalarpublic static long[] subtract(long[] a1, long s)
s
from all elements in a1
overwriting
the array. This is syntactic sugar for add( a1, -s )
.a1
- The arrays
- The scalarpublic static byte[] subtract(byte[] a1, byte s)
s
from all elements in a1
overwriting
the array. This is syntactic sugar for add( a1, -s )
.a1
- The arrays
- The scalarpublic static short[] subtract(short[] a1, short s)
s
from all elements in a1
overwriting
the array. This is syntactic sugar for add( a1, -s )
.a1
- The arrays
- The scalarpublic static double[] add(double[] ds, double x)
ds
- input arrayx
- constant to addpublic static float[] add(float[] ds, float x)
ds
- input arrayx
- constant to addpublic static int[] add(int[] ds, int x)
ds
- input arrayx
- constant to addpublic static long[] add(long[] ds, long x)
ds
- input arrayx
- constant to addpublic static byte[] add(byte[] ds, byte x)
ds
- input arrayx
- constant to addpublic static short[] add(short[] ds, short x)
ds
- input arrayx
- constant to addpublic static double[] multiply(double[] ds, double x)
ds
- input arrayx
- constant to multiply bypublic static double[][] multiply(double[][] ds, double x)
ds
- input arrayx
- constant to multiply bypublic static float[] multiply(float[] ds, float x)
ds
- input arrayx
- constant to multiply bypublic static float[][] multiply(float[][] ds, float x)
ds
- input arrayx
- constant to multiply bypublic static int[] multiply(int[] ds, int x)
ds
- input arrayx
- constant to multiply bypublic static int[][] multiply(int[][] ds, int x)
ds
- input arrayx
- constant to multiply bypublic static long[] multiply(long[] ds, long x)
ds
- input arrayx
- constant to multiply bypublic static long[][] multiply(long[][] ds, long x)
ds
- input arrayx
- constant to multiply bypublic static byte[] multiply(byte[] ds, byte x)
ds
- input arrayx
- constant to multiply bypublic static byte[][] multiply(byte[][] ds, byte x)
ds
- input arrayx
- constant to multiply bypublic static short[] multiply(short[] ds, short x)
ds
- input arrayx
- constant to multiply bypublic static short[][] multiply(short[][] ds, short x)
ds
- input arrayx
- constant to multiply bypublic static double[] multiply(double[] a1, double[] a2)
a1
- The first arraya2
- the second arraypublic static double[][] multiply(double[][] a1, double[][] a2)
a1
- First arraya2
- second arraypublic static float[] multiply(float[] a1, float[] a2)
a1
- The first arraya2
- the second arraypublic static float[][] multiply(float[][] a1, float[][] a2)
a1
- First arraya2
- second arraypublic static int[] multiply(int[] a1, int[] a2)
a1
- The first arraya2
- the second arraypublic static int[][] multiply(int[][] a1, int[][] a2)
a1
- First arraya2
- second arraypublic static long[] multiply(long[] a1, long[] a2)
a1
- The first arraya2
- the second arraypublic static long[][] multiply(long[][] a1, long[][] a2)
a1
- First arraya2
- second arraypublic static byte[] multiply(byte[] a1, byte[] a2)
a1
- The first arraya2
- the second arraypublic static byte[][] multiply(byte[][] a1, byte[][] a2)
a1
- First arraya2
- second arraypublic static short[] multiply(short[] a1, short[] a2)
a1
- The first arraya2
- the second arraypublic static short[][] multiply(short[][] a1, short[][] a2)
a1
- First arraya2
- second arraypublic static double[] divide(double[] fs, double x)
fs
- The input arrayx
- the constant to divide bypublic static float[] divide(float[] fs, float x)
fs
- The input arrayx
- the constant to divide bypublic static int[] divide(int[] fs, int x)
fs
- The input arrayx
- the constant to divide bypublic static long[] divide(long[] fs, long x)
fs
- The input arrayx
- the constant to divide bypublic static byte[] divide(byte[] fs, byte x)
fs
- The input arrayx
- the constant to divide bypublic static short[] divide(short[] fs, short x)
fs
- The input arrayx
- the constant to divide bypublic static float[] normalise(float[] array)
array
- the arraypublic static double[] normalise(double[] array)
array
- the arraypublic static double[] reverse(double[] ds)
ds
- input arraypublic static float[] reverse(float[] ds)
ds
- input arraypublic static int[] reverse(int[] ds)
ds
- input arraypublic static long[] reverse(long[] ds)
ds
- input arraypublic static byte[] reverse(byte[] ds)
ds
- input arraypublic static short[] reverse(short[] ds)
ds
- input arraypublic static double[] convertToDouble(double[] array)
array
- array of doubles to convertpublic static double[][] convertToDouble(double[][] array)
array
- array of doubles to convertpublic static double[] convertToDouble(float[] array)
array
- array of floats to convertpublic static double[][] convertToDouble(float[][] array)
array
- array of floats to convertpublic static double[] convertToDouble(int[] array)
array
- array of ints to convertpublic static double[][] convertToDouble(int[][] array)
array
- array of ints to convertpublic static double[] convertToDouble(long[] array)
array
- array of longs to convertpublic static double[][] convertToDouble(long[][] array)
array
- array of longs to convertpublic static double[] convertToDouble(byte[] array)
array
- array of bytes to convertpublic static double[][] convertToDouble(byte[][] array)
array
- array of bytes to convertpublic static double[] convertToDouble(short[] array)
array
- array of shorts to convertpublic static double[][] convertToDouble(short[][] array)
array
- array of shorts to convertpublic static float[] convertToFloat(double[] array)
array
- array of doubles to convertpublic static float[][] convertToFloat(double[][] array)
array
- array of doubles to convertpublic static float[] convertToFloat(float[] array)
array
- array of floats to convertpublic static float[][] convertToFloat(float[][] array)
array
- array of floats to convertpublic static float[] convertToFloat(int[] array)
array
- array of ints to convertpublic static float[][] convertToFloat(int[][] array)
array
- array of ints to convertpublic static float[] convertToFloat(long[] array)
array
- array of longs to convertpublic static float[][] convertToFloat(long[][] array)
array
- array of longs to convertpublic static float[] convertToFloat(byte[] array)
array
- array of bytes to convertpublic static float[][] convertToFloat(byte[][] array)
array
- array of bytes to convertpublic static float[] convertToFloat(short[] array)
array
- array of shorts to convertpublic static float[][] convertToFloat(short[][] array)
array
- array of shorts to convertpublic static <T> T firstNonNull(T[] array)
T
- the type of the elements in the arrayarray
- the array@SafeVarargs public static <T> T[] concatenate(T[]... arrays)
T
- Type of elements in the array.arrays
- the arrays to concatenate.public static double[] concatenate(double[]... arrays)
arrays
- the arrays to concatenate.public static float[] concatenate(float[]... arrays)
arrays
- the arrays to concatenate.public static int[] concatenate(int[]... arrays)
arrays
- the arrays to concatenate.public static long[] concatenate(long[]... arrays)
arrays
- the arrays to concatenate.public static byte[] concatenate(byte[]... arrays)
arrays
- the arrays to concatenate.public static short[] concatenate(short[]... arrays)
arrays
- the arrays to concatenate.public static double[][] concatenate(double[][]... arrays)
arrays
- the arrays to concatenate.public static float[][] concatenate(float[][]... arrays)
arrays
- the arrays to concatenate.public static int[][] concatenate(int[][]... arrays)
arrays
- the arrays to concatenate.public static long[][] concatenate(long[][]... arrays)
arrays
- the arrays to concatenate.public static byte[][] concatenate(byte[][]... arrays)
arrays
- the arrays to concatenate.public static short[][] concatenate(short[][]... arrays)
arrays
- the arrays to concatenate.public static double sumValues(double[] vector)
vector
- public static float sumValues(float[] vector)
vector
- public static long sumValues(int[] vector)
vector
- public static long sumValues(long[] vector)
vector
- public static int sumValues(byte[] vector)
vector
- public static int sumValues(short[] vector)
vector
- public static double sumValues(double[][] array)
array
- public static float sumValues(float[][] array)
array
- public static long sumValues(int[][] array)
array
- public static long sumValues(long[][] array)
array
- public static int sumValues(byte[][] array)
array
- public static int sumValues(short[][] array)
array
- public static double sumValuesSquared(double[] vector)
vector
- public static float sumValuesSquared(float[] vector)
vector
- public static long sumValuesSquared(int[] vector)
vector
- public static long sumValuesSquared(long[] vector)
vector
- public static int sumValuesSquared(byte[] vector)
vector
- public static int sumValuesSquared(short[] vector)
vector
- public static double[] cumulativeSum(double[] vector)
vector
- public static float[] cumulativeSum(float[] vector)
vector
- public static long[] cumulativeSum(int[] vector)
vector
- public static long[] cumulativeSum(long[] vector)
vector
- public static int[] cumulativeSum(byte[] vector)
vector
- public static int[] cumulativeSum(short[] vector)
vector
- public static double[] rowSum(double[][] array)
array
- the arraypublic static float[] rowSum(float[][] array)
array
- the arraypublic static long[] rowSum(int[][] array)
array
- the arraypublic static long[] rowSum(long[][] array)
array
- the arraypublic static int[] rowSum(byte[][] array)
array
- the arraypublic static int[] rowSum(short[][] array)
array
- the arraypublic static double[] colSum(double[][] array)
array
- the arraypublic static float[] colSum(float[][] array)
array
- the arraypublic static long[] colSum(int[][] array)
array
- the arraypublic static long[] colSum(long[][] array)
array
- the arraypublic static int[] colSum(byte[][] array)
array
- the arraypublic static int[] colSum(short[][] array)
array
- the arraypublic static int[] range(int start, int length)
start
- length
- public static int[] search(double[] a, double value)
a
- array to searchvalue
- value to search forpublic static int[] search(float[] a, float value)
a
- array to searchvalue
- value to search forpublic static int[] search(int[] a, int value)
a
- array to searchvalue
- value to search forpublic static int[] search(long[] a, long value)
a
- array to searchvalue
- value to search forpublic static int[] search(byte[] a, byte value)
a
- array to searchvalue
- value to search forpublic static int[] search(short[] a, short value)
a
- array to searchvalue
- value to search forpublic static double[] reshape(double[][] a)
a
- array to reshapepublic static float[] reshape(float[][] a)
a
- array to reshapepublic static int[] reshape(int[][] a)
a
- array to reshapepublic static long[] reshape(long[][] a)
a
- array to reshapepublic static byte[] reshape(byte[][] a)
a
- array to reshapepublic static short[] reshape(short[][] a)
a
- array to reshapepublic static double[] reshapeDouble(double[][] a)
a
- array to reshapepublic static double[] reshapeDouble(float[][] a)
a
- array to reshapepublic static double[] reshapeDouble(int[][] a)
a
- array to reshapepublic static double[] reshapeDouble(long[][] a)
a
- array to reshapepublic static double[] reshapeDouble(byte[][] a)
a
- array to reshapepublic static double[] reshapeDouble(short[][] a)
a
- array to reshapepublic static double[][] reshape(double[] a, double[][] out)
a
- array to reshapeout
- the return array, correctly sizedpublic static double[][] reshape(double[] a, int width, int height)
a
- array to reshapewidth
- the width of the return arrayheight
- the height of the return arraypublic static float[][] reshape(float[] a, float[][] out)
a
- array to reshapeout
- the return array, correctly sizedpublic static float[][] reshape(float[] a, int width, int height)
a
- array to reshapewidth
- the width of the return arrayheight
- the height of the return arraypublic static int[][] reshape(int[] a, int[][] out)
a
- array to reshapeout
- the return array, correctly sizedpublic static int[][] reshape(int[] a, int width, int height)
a
- array to reshapewidth
- the width of the return arrayheight
- the height of the return arraypublic static long[][] reshape(long[] a, long[][] out)
a
- array to reshapeout
- the return array, correctly sizedpublic static long[][] reshape(long[] a, int width, int height)
a
- array to reshapewidth
- the width of the return arrayheight
- the height of the return arraypublic static byte[][] reshape(byte[] a, byte[][] out)
a
- array to reshapeout
- the return array, correctly sizedpublic static byte[][] reshape(byte[] a, int width, int height)
a
- array to reshapewidth
- the width of the return arrayheight
- the height of the return arraypublic static short[][] reshape(short[] a, short[][] out)
a
- array to reshapeout
- the return array, correctly sizedpublic static short[][] reshape(short[] a, int width, int height)
a
- array to reshapewidth
- the width of the return arrayheight
- the height of the return arraypublic static float[][] reshapeFloat(double[] a, float[][] out)
a
- array to reshapeout
- the return array, correctly sizedpublic static float[][] reshapeFloat(double[] a, int width, int height)
a
- array to reshapewidth
- the width of the return arrayheight
- the height of the return arraypublic static void parallelQuicksortDescending(double[] main, double[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(double[] main, double[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(double[] main, float[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(double[] main, float[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(double[] main, int[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(double[] main, int[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(double[] main, long[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(double[] main, long[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(double[] main, byte[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(double[] main, byte[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(double[] main, short[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(double[] main, short[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(float[] main, double[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(float[] main, double[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(float[] main, float[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(float[] main, float[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(float[] main, int[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(float[] main, int[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(float[] main, long[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(float[] main, long[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(float[] main, byte[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(float[] main, byte[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(float[] main, short[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(float[] main, short[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(int[] main, double[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(int[] main, double[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(int[] main, float[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(int[] main, float[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(int[] main, int[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(int[] main, int[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(int[] main, long[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(int[] main, long[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(int[] main, byte[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(int[] main, byte[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(int[] main, short[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(int[] main, short[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(long[] main, double[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(long[] main, double[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(long[] main, float[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(long[] main, float[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(long[] main, int[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(long[] main, int[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(long[] main, long[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(long[] main, long[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(long[] main, byte[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(long[] main, byte[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(long[] main, short[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(long[] main, short[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(byte[] main, double[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(byte[] main, double[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(byte[] main, float[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(byte[] main, float[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(byte[] main, int[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(byte[] main, int[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(byte[] main, long[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(byte[] main, long[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(byte[] main, byte[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(byte[] main, byte[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(byte[] main, short[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(byte[] main, short[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(short[] main, double[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(short[] main, double[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(short[] main, float[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(short[] main, float[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(short[] main, int[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(short[] main, int[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(short[] main, long[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(short[] main, long[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(short[] main, byte[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(short[] main, byte[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortDescending(short[] main, short[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortDescending(short[] main, short[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(double[] main, double[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(double[] main, double[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(double[] main, float[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(double[] main, float[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(double[] main, int[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(double[] main, int[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(double[] main, long[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(double[] main, long[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(double[] main, byte[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(double[] main, byte[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(double[] main, short[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(double[] main, short[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(float[] main, double[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(float[] main, double[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(float[] main, float[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(float[] main, float[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(float[] main, int[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(float[] main, int[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(float[] main, long[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(float[] main, long[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(float[] main, byte[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(float[] main, byte[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(float[] main, short[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(float[] main, short[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(int[] main, double[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(int[] main, double[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(int[] main, float[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(int[] main, float[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(int[] main, int[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(int[] main, int[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(int[] main, long[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(int[] main, long[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(int[] main, byte[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(int[] main, byte[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(int[] main, short[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(int[] main, short[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(long[] main, double[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(long[] main, double[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(long[] main, float[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(long[] main, float[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(long[] main, int[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(long[] main, int[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(long[] main, long[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(long[] main, long[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(long[] main, byte[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(long[] main, byte[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(long[] main, short[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(long[] main, short[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(byte[] main, double[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(byte[] main, double[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(byte[] main, float[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(byte[] main, float[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(byte[] main, int[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(byte[] main, int[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(byte[] main, long[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(byte[] main, long[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(byte[] main, byte[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(byte[] main, byte[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(byte[] main, short[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(byte[] main, short[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(short[] main, double[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(short[] main, double[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(short[] main, float[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(short[] main, float[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(short[] main, int[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(short[] main, int[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(short[] main, long[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(short[] main, long[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(short[] main, byte[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(short[] main, byte[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static void parallelQuicksortAscending(short[] main, short[] indices)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arraypublic static void parallelQuicksortAscending(short[] main, short[] indices, int left, int right)
Implementation inspired by this stackoverflow page: http://stackoverflow.com/questions/951848/java-array-sort-quick-way-to- get-a-sorted-list-of-indices-of-an-array
main
- the values to use for determining the orderindices
- the second arrayleft
- the starting indexright
- the ending indexpublic static int[] indexSort(double[] arr)
arr
- the arraypublic static int[] indexSort(float[] arr)
arr
- the arraypublic static int[] indexSort(int[] arr)
arr
- the arraypublic static int[] indexSort(long[] arr)
arr
- the arraypublic static int[] indexSort(byte[] arr)
arr
- the arraypublic static int[] indexSort(short[] arr)
arr
- the arraypublic static double[] normaliseMax(double[] array)
array
- The array to normalisepublic static double[] normaliseMax(double[] array, double max)
array
- The array to normalisemax
- The maximum valuepublic static String toString(String[] s, String glue)
String
by joining the elements with the
given glue.s
- the arrayglue
- the gluepublic static double[][] fill(double[][] a1, double i)
a1
- The arrayi
- The valuepublic static double[] fill(double[] a1, double i, int s, int l)
a1
- The array to filli
- The value to fill withs
- The start indexl
- The length of the fillpublic static double[] fill(double[] a1, double i)
a1
- The arrayi
- The valuepublic static float[][] fill(float[][] a1, float i)
a1
- The arrayi
- The valuepublic static float[] fill(float[] a1, float i, int s, int l)
a1
- The array to filli
- The value to fill withs
- The start indexl
- The length of the fillpublic static float[] fill(float[] a1, float i)
a1
- The arrayi
- The valuepublic static int[][] fill(int[][] a1, int i)
a1
- The arrayi
- The valuepublic static int[] fill(int[] a1, int i, int s, int l)
a1
- The array to filli
- The value to fill withs
- The start indexl
- The length of the fillpublic static int[] fill(int[] a1, int i)
a1
- The arrayi
- The valuepublic static long[][] fill(long[][] a1, long i)
a1
- The arrayi
- The valuepublic static long[] fill(long[] a1, long i, int s, int l)
a1
- The array to filli
- The value to fill withs
- The start indexl
- The length of the fillpublic static long[] fill(long[] a1, long i)
a1
- The arrayi
- The valuepublic static byte[][] fill(byte[][] a1, byte i)
a1
- The arrayi
- The valuepublic static byte[] fill(byte[] a1, byte i, int s, int l)
a1
- The array to filli
- The value to fill withs
- The start indexl
- The length of the fillpublic static byte[] fill(byte[] a1, byte i)
a1
- The arrayi
- The valuepublic static short[][] fill(short[][] a1, short i)
a1
- The arrayi
- The valuepublic static short[] fill(short[] a1, short i, int s, int l)
a1
- The array to filli
- The value to fill withs
- The start indexl
- The length of the fillpublic static short[] fill(short[] a1, short i)
a1
- The arrayi
- The valuepublic static int[] fill(int[] array)
array
- The array to fillpublic static double[] truncate(double[] array, int index)
array
- The array to truncateindex
- The size to truncate it topublic static double[][] truncate(double[][] array, int index)
array
- The array to truncateindex
- The size to truncate it topublic static float[] truncate(float[] array, int index)
array
- The array to truncateindex
- The size to truncate it topublic static float[][] truncate(float[][] array, int index)
array
- The array to truncateindex
- The size to truncate it topublic static int[] truncate(int[] array, int index)
array
- The array to truncateindex
- The size to truncate it topublic static int[][] truncate(int[][] array, int index)
array
- The array to truncateindex
- The size to truncate it topublic static long[] truncate(long[] array, int index)
array
- The array to truncateindex
- The size to truncate it topublic static long[][] truncate(long[][] array, int index)
array
- The array to truncateindex
- The size to truncate it topublic static byte[] truncate(byte[] array, int index)
array
- The array to truncateindex
- The size to truncate it topublic static byte[][] truncate(byte[][] array, int index)
array
- The array to truncateindex
- The size to truncate it topublic static short[] truncate(short[] array, int index)
array
- The array to truncateindex
- The size to truncate it topublic static short[][] truncate(short[][] array, int index)
array
- The array to truncateindex
- The size to truncate it topublic static double quickSelect(double[] arr, int n)
arr
- the array to select fromn
- the item to selectpublic static double quickSelect(double[] arr, int n, int low, int high)
arr
- the array to select fromn
- the item to selectlow
- the starting position in the array (inclusive)high
- the ending position in the array (exclusive)public static float quickSelect(float[] arr, int n)
arr
- the array to select fromn
- the item to selectpublic static float quickSelect(float[] arr, int n, int low, int high)
arr
- the array to select fromn
- the item to selectlow
- the starting position in the array (inclusive)high
- the ending position in the array (exclusive)public static int quickSelect(int[] arr, int n)
arr
- the array to select fromn
- the item to selectpublic static int quickSelect(int[] arr, int n, int low, int high)
arr
- the array to select fromn
- the item to selectlow
- the starting position in the array (inclusive)high
- the ending position in the array (exclusive)public static long quickSelect(long[] arr, int n)
arr
- the array to select fromn
- the item to selectpublic static long quickSelect(long[] arr, int n, int low, int high)
arr
- the array to select fromn
- the item to selectlow
- the starting position in the array (inclusive)high
- the ending position in the array (exclusive)public static byte quickSelect(byte[] arr, int n)
arr
- the array to select fromn
- the item to selectpublic static byte quickSelect(byte[] arr, int n, int low, int high)
arr
- the array to select fromn
- the item to selectlow
- the starting position in the array (inclusive)high
- the ending position in the array (exclusive)public static short quickSelect(short[] arr, int n)
arr
- the array to select fromn
- the item to selectpublic static short quickSelect(short[] arr, int n, int low, int high)
arr
- the array to select fromn
- the item to selectlow
- the starting position in the array (inclusive)high
- the ending position in the array (exclusive)public double[] convert(Double[] array)
array
- input arraypublic Double[] convert(double[] array)
array
- input arraypublic float[] convert(Float[] array)
array
- input arraypublic Float[] convert(float[] array)
array
- input arraypublic int[] convert(Integer[] array)
array
- input arraypublic Integer[] convert(int[] array)
array
- input arraypublic long[] convert(Long[] array)
array
- input arraypublic Long[] convert(long[] array)
array
- input arraypublic byte[] convert(Byte[] array)
array
- input arraypublic Byte[] convert(byte[] array)
array
- input arraypublic short[] convert(Short[] array)
array
- input arraypublic Short[] convert(short[] array)
array
- input arraypublic static double pnorm(double[] array, int p)
array
- the arrayp
- the p valuepublic static double pnorm(float[] array, int p)
array
- the arrayp
- the p valuepublic static double pnorm(int[] array, int p)
array
- the arrayp
- the p valuepublic static double pnorm(long[] array, int p)
array
- the arrayp
- the p valuepublic static double pnorm(byte[] array, int p)
array
- the arrayp
- the p valuepublic static double pnorm(short[] array, int p)
array
- the arrayp
- the p value