/** * Ensures that the receiver can hold at least the specified number of elements without needing to allocate new internal memory. * If necessary, allocates new internal memory and increases the capacity of the receiver. * * @param minCapacity the desired minimum capacity. */ public void ensureCapacity(int minCapacity) { elements = cern.colt.Arrays.ensureCapacity(elements,minCapacity); } /**
/** * Swaps x[a .. (a+n-1)] with x[b .. (b+n-1)]. */ private static void vecswap(long x[], int a, int b, int n) { for (int i=0; i<n; i++, a++, b++) swap(x, a, b); } /**
/** * Swaps x[a .. (a+n-1)] with x[b .. (b+n-1)]. */ private static void vecswap(Swapper swapper, int a, int b, int n) { for (int i=0; i<n; i++, a++, b++) swapper.swap(a, b); } }
/** * Returns the major version of this release. */ public static int getMajorVersion() { return numbers()[0]; } /**
/** * Constructs a new timer, initially not started. Use start() to start the timer. */ public Timer() { this.reset(); } /**
/** * Returns the elapsed time in minutes; does not stop the timer, if started. */ public float minutes() { return seconds() / 60; } /**
/** * Returns the elapsed time in seconds; does not stop the timer, if started. */ public float seconds() { return ((float) millis()) / UNIT; } /**
/** * Ensures that the receiver can hold at least the specified number of elements without needing to allocate new internal memory. * If necessary, allocates new internal memory and increases the capacity of the receiver. * * @param minCapacity the desired minimum capacity. */ public void ensureCapacity(int minCapacity) { elements = cern.colt.Arrays.ensureCapacity(elements,minCapacity); } /**
/** * Swaps x[a .. (a+n-1)] with x[b .. (b+n-1)]. */ private static void vecswap(int x[], int a, int b, int n) { for (int i=0; i<n; i++, a++, b++) swap(x, a, b); } /**
/** * Returns the build version of this release. */ public static int getBuildVersion() { return numbers()[3]; } /**
/** * Ensures that the receiver can hold at least the specified number of elements without needing to allocate new internal memory. * If necessary, allocates new internal memory and increases the capacity of the receiver. * * @param minCapacity the desired minimum capacity. */ public void ensureCapacity(int minCapacity) { elements = cern.colt.Arrays.ensureCapacity(elements,minCapacity); } /**
/** * Swaps x[a .. (a+n-1)] with x[b .. (b+n-1)]. */ private static void vecswap(short x[], int a, int b, int n) { for (int i=0; i<n; i++, a++, b++) swap(x, a, b); } }
/** * Ensures that the receiver can hold at least the specified number of elements without needing to allocate new internal memory. * If necessary, allocates new internal memory and increases the capacity of the receiver. * * @param minCapacity the desired minimum capacity. */ public void ensureCapacity(int minCapacity) { elements = cern.colt.Arrays.ensureCapacity(elements,minCapacity); } /**
/** * Swaps x[a .. (a+n-1)] with x[b .. (b+n-1)]. */ private static void vecswap(float x[], int a, int b, int n) { for (int i=0; i<n; i++, a++, b++) swap(x, a, b); } /**
/** * Ensures that the receiver can hold at least the specified number of elements without needing to allocate new internal memory. * If necessary, allocates new internal memory and increases the capacity of the receiver. * * @param minCapacity the desired minimum capacity. */ public void ensureCapacity(int minCapacity) { elements = cern.colt.Arrays.ensureCapacity(elements,minCapacity); } /**
/** * Swaps x[a .. (a+n-1)] with x[b .. (b+n-1)]. */ private static void vecswap(Object x[], int a, int b, int n) { for (int i=0; i<n; i++, a++, b++) swap(x, a, b); } /**
/** * Ensures that the receiver can hold at least the specified number of elements without needing to allocate new internal memory. * If necessary, allocates new internal memory and increases the capacity of the receiver. * * @param minCapacity the desired minimum capacity. */ public void ensureCapacity(int minCapacity) { elements = cern.colt.Arrays.ensureCapacity(elements,minCapacity); } /**
/** * Swaps x[a .. (a+n-1)] with x[b .. (b+n-1)]. */ private static void vecswap(char x[], int a, int b, int n) { for (int i=0; i<n; i++, a++, b++) swap(x, a, b); } /**
/** * Ensures that the receiver can hold at least the specified number of elements without needing to allocate new internal memory. * If necessary, allocates new internal memory and increases the capacity of the receiver. * * @param minCapacity the desired minimum capacity. */ public void ensureCapacity(int minCapacity) { elements = cern.colt.Arrays.ensureCapacity(elements,minCapacity); } /**
/** * Ensures that the receiver can hold at least the specified number of elements without needing to allocate new internal memory. * If necessary, allocates new internal memory and increases the capacity of the receiver. * * @param minCapacity the desired minimum capacity. */ public void ensureCapacity(int minCapacity) { elements = cern.colt.Arrays.ensureCapacity(elements,minCapacity); } /**