public class OneDimSort extends java.lang.Object implements MultiDimSort
MultiDimSort that
simply sorts the arrays according to one dimension specified in the
constructor. The sort uses method
sort from class
Arrays.| Constructor and Description |
|---|
OneDimSort(int i)
Constructs a
OneDimSort that will sort according to
coordinate i. |
| Modifier and Type | Method and Description |
|---|---|
int |
dimension()
Returns the coordinate used in the sort.
|
void |
sort(double[][] a)
Sorts the entire array.
|
void |
sort(double[][] a,
int iMin,
int iMax)
Sorts the subarray of a made of the elements with indices from
iMin to iMax-1.
|
<T extends MultiDimComparable<? super T>> |
sort(T[] a)
Sorts the entire array.
|
<T extends MultiDimComparable<? super T>> |
sort(T[] a,
int iMin,
int iMax)
Sorts the subarray of a made of the elements with indices from
iMin to iMax-1.
|
public OneDimSort(int i)
OneDimSort that will sort according to
coordinate i.public <T extends MultiDimComparable<? super T>> void sort(T[] a, int iMin, int iMax)
MultiDimSortsort in interface MultiDimSorta - array to sortiMin - index of first element to sortiMax - index of last element to sort is
public <T extends MultiDimComparable<? super T>> void sort(T[] a)
MultiDimSortsort in interface MultiDimSorta - array to sortpublic void sort(double[][] a,
int iMin,
int iMax)
MultiDimSortsort in interface MultiDimSorta - array to sortiMin - index of first element to sortiMax - index of last element to sort is
public void sort(double[][] a)
MultiDimSortsort in interface MultiDimSorta - array to sortpublic int dimension()
dimension in interface MultiDimSortTo submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.