edu.stanford.math.plex4.utility
public class ArrayUtility extends java.lang.Object
Constructor and Description |
---|
ArrayUtility() |
Modifier and Type | Method and Description |
---|---|
static boolean[] |
copyOf(boolean[] array,
int length) |
static byte[] |
copyOf(byte[] array,
int length) |
static char[] |
copyOf(char[] array,
int length) |
static double[] |
copyOf(double[] array,
int length) |
static float[] |
copyOf(float[] array,
int length) |
static int[] |
copyOf(int[] array,
int length) |
static long[] |
copyOf(long[] array,
int length) |
static java.lang.Object[] |
copyOf(java.lang.Object[] array,
int length) |
static short[] |
copyOf(short[] array,
int length) |
static double[][] |
getSubset(double[][] points,
int[] indices) |
static boolean |
isMonotoneIncreasing(int[] a) |
static int[] |
makeMonotone(int[] a) |
static int[] |
union(int[] a,
int[] b) |
public static double[][] getSubset(double[][] points, int[] indices)
public static boolean isMonotoneIncreasing(int[] a)
public static int[] makeMonotone(int[] a)
public static int[] union(int[] a, int[] b)
public static double[] copyOf(double[] array, int length)
public static int[] copyOf(int[] array, int length)
public static float[] copyOf(float[] array, int length)
public static short[] copyOf(short[] array, int length)
public static long[] copyOf(long[] array, int length)
public static boolean[] copyOf(boolean[] array, int length)
public static byte[] copyOf(byte[] array, int length)
public static char[] copyOf(char[] array, int length)
public static java.lang.Object[] copyOf(java.lang.Object[] array, int length)