| java.lang.Object uk.org.ponder.intutil.Algorithms
Algorithms | public class Algorithms (Code) | | author: Bosmon author: The class Algorithms incorporates several useful algorithms culled from the STL. |
Method Summary | |
public static int[] | copy(int[] tocopy) | public static int | count_bits(int tocount) | public static int[] | ensure_size(int[] array, int newsize) | public static boolean[] | ensure_size(boolean[] array, int newsize) | public static boolean | equals(int[] array1, int[] array2) | public static int[] | fill(int size, int val) | public static int[] | fill(int[] target, int size, int val) | public static int[] | invert_permutation(int[] indices, int maximum) | public static int | lexicalCompare(int[] array1, int length1, int[] array2, int length2) | public static int[] | makeIota(int size, int start) | public static int[] | random_sample(int choose, int from, Random random) | public static void | random_shuffle(intVector toshuf, int first, int last, Random random) | public static void | random_shuffle(int[] toshuf, Random random) |
copy | public static int[] copy(int[] tocopy)(Code) | | |
count_bits | public static int count_bits(int tocount)(Code) | | Count the number of set bits in the argument, by the accepted method
|
ensure_size | public static int[] ensure_size(int[] array, int newsize)(Code) | | |
ensure_size | public static boolean[] ensure_size(boolean[] array, int newsize)(Code) | | |
equals | public static boolean equals(int[] array1, int[] array2)(Code) | | |
fill | public static int[] fill(int size, int val)(Code) | | Parameters: size - Parameters: val - |
fill | public static int[] fill(int[] target, int size, int val)(Code) | | |
invert_permutation | public static int[] invert_permutation(int[] indices, int maximum)(Code) | | |
lexicalCompare | public static int lexicalCompare(int[] array1, int length1, int[] array2, int length2)(Code) | | |
makeIota | public static int[] makeIota(int size, int start)(Code) | | |
random_sample | public static int[] random_sample(int choose, int from, Random random)(Code) | | |
random_shuffle | public static void random_shuffle(intVector toshuf, int first, int last, Random random)(Code) | | |
random_shuffle | public static void random_shuffle(int[] toshuf, Random random)(Code) | | |
|
|