MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / swap

Method swap

JSAT/src/jsat/utils/ArrayUtils.java:50–55  ·  view source on GitHub ↗

Swaps two indices in the given array @param array the array to perform the sawp in @param a the first index @param b the second index

(int[] array, int a, int b)

Source from the content-addressed store, hash-verified

48 * @param b the second index
49 */
50 static public void swap(int[] array, int a, int b)
51 {
52 int tmp = array[a];
53 array[a] = array[b];
54 array[b] = tmp;
55 }
56}

Callers 1

shuffleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected