|
SSJ V. 2.4. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectumontreal.iro.lecuyer.util.OneDimSort
public class OneDimSort
This class implements a MultiDimSort that
simply sorts the arrays according to one dimension specified in the
constructor. The sort uses method
sort from class
Arrays.
| Constructor Summary | |
|---|---|
OneDimSort(int i)
Constructs a OneDimSort that will sort according to
coordinate i. |
|
| Method Summary | ||
|---|---|---|
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. |
|
|
sort(T[] a)
Sorts the entire array. |
|
|
sort(T[] a,
int iMin,
int iMax)
Sorts the subarray of a made of the elements with indices from iMin to iMax-1. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OneDimSort(int i)
OneDimSort that will sort according to
coordinate i.
| Method Detail |
|---|
public <T extends MultiDimComparable<? super T>> void sort(T[] a,
int iMin,
int iMax)
MultiDimSort
sort 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)
MultiDimSort
sort in interface MultiDimSorta - array to sort
public void sort(double[][] a,
int iMin,
int iMax)
MultiDimSort
sort in interface MultiDimSorta - array to sortiMin - index of first element to sortiMax - index of last element to sort is
public void sort(double[][] a)
MultiDimSort
sort in interface MultiDimSorta - array to sortpublic int dimension()
dimension in interface MultiDimSort
|
SSJ V. 2.4. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||