SSJ API Documentation
Stochastic Simulation in Java
Loading...
Searching...
No Matches
MultiDimSort.java
1/*
2 * Class: MultiDimSort
3 * Description: Represents a sort on multidimensional arrays.
4 * Environment: Java
5 * Software: SSJ
6 * Copyright (C) 2001 Pierre L'Ecuyer and Universite de Montreal
7 * Organization: DIRO, Universite de Montreal
8 * @author
9 * @since
10
11 * SSJ is free software: you can redistribute it and/or modify it under
12 * the terms of the GNU General Public License (GPL) as published by the
13 * Free Software Foundation, either version 3 of the License, or
14 * any later version.
15
16 * SSJ is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20
21 * A copy of the GNU General Public License is available at
22 <a href="http://www.gnu.org/licenses">GPL licence site</a>.
23 */
24package umontreal.ssj.util.multidimsort;
25
58public interface MultiDimSort<T> {
59
69 public void sort(T[] a, int iMin, int iMax);
70
76 public void sort(T[] a);
77
87 public void sort(double[][] a, int iMin, int iMax);
88
94 public void sort(double[][] a);
95
101 public int dimension();
102
103}
This interface is meant to be implemented by certain multivariate sorting algorithms that sort object...
void sort(double[][] a)
Same as above, but sorts the entire array.
void sort(T[] a, int iMin, int iMax)
Sorts the subarray of a made of the elements with indices from iMin to iMax-1.
void sort(T[] a)
Sorts the entire array a.
int dimension()
Returns the number of dimensions used in the sort.
void sort(double[][] a, int iMin, int iMax)
Sorts the subarray of a made of the elements with indices from iMin to iMax-1, using the natural orde...