|
Bouncy Castle Cryptography Library 1.49 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.pqc.math.linearalgebra.IntUtils
public final class IntUtils
Method Summary | |
---|---|
static int[] |
clone(int[] array)
Return a clone of the given int array. |
static boolean |
equals(int[] left,
int[] right)
Compare two int arrays. |
static void |
fill(int[] array,
int value)
Fill the given int array with the given value. |
static void |
quicksort(int[] source)
Sorts this array of integers according to the Quicksort algorithm. |
static void |
quicksort(int[] source,
int left,
int right)
Sort a subarray of a source array. |
static int[] |
subArray(int[] input,
int start,
int end)
Generates a subarray of a given int array. |
static java.math.BigInteger[] |
toFlexiBigIntArray(int[] input)
Convert an int array to a FlexiBigInt array. |
static java.lang.String |
toHexString(int[] input)
|
static java.lang.String |
toString(int[] input)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean equals(int[] left, int[] right)
left
- the first int arrayright
- the second int array
public static int[] clone(int[] array)
array
- the array to clone
public static void fill(int[] array, int value)
array
- the arrayvalue
- the valuepublic static void quicksort(int[] source)
Data Structures In Java
by Thomas A. Standish, Chapter 10,
ISBN 0-201-30564-X.
source
- the array of integers that needs to be sorted.public static void quicksort(int[] source, int left, int right)
source
- the int array to be sortedleft
- the start index of the subarrayright
- the end index of the subarraypublic static int[] subArray(int[] input, int start, int end)
input
- -
the input int arraystart
- -
the start indexend
- -
the end index
public static java.math.BigInteger[] toFlexiBigIntArray(int[] input)
FlexiBigInt
array.
input
- the int array
FlexiBigInt
arraypublic static java.lang.String toString(int[] input)
input
- an int array
public static java.lang.String toHexString(int[] input)
input
- an int arary
|
Bouncy Castle Cryptography Library 1.49 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |