ADMB Documentation
-a65f1c97
|
Has routines for sorting an ivector. More...
Go to the source code of this file.
Macros | |
#define | int_lt(a, b) ((*a)<(*b)) |
#define | int_lt(a, b) ((*a)<(*b)) |
Functions | |
void | int_qsort (int *arr, unsigned n) |
A subroutine used in Quicksort. More... | |
void | int_qsort2 (int *arr, int *arr2, unsigned n) |
A subroutine used in Quicksort. More... | |
ivector | sort (const ivector &v, int NSTACK) |
Quicksort. More... | |
ivector | sort (const ivector &v, const ivector &_index, int NSTACK) |
Quicksort. More... | |
Has routines for sorting an ivector.
Definition in file ivsort.cpp.
#define int_lt | ( | a, | |
b | |||
) | ((*a)<(*b)) |
Referenced by int_qsort(), and int_qsort2().
#define int_lt | ( | a, | |
b | |||
) | ((*a)<(*b)) |
void int_qsort | ( | int * | arr, |
unsigned | n | ||
) |
void int_qsort2 | ( | int * | arr, |
int * | arr2, | ||
unsigned | n | ||
) |
Quicksort.
v | Vector of integers to be sorted |
NSTACK | Not used. |
Adopted from the GNU C Library. http://www.corpit.ru/mjt/qsort.html
Definition at line 40 of file ivsort.cpp.
Quicksort.
_v | Vector of integers to be sorted |
_index | ivector on return containing the input order of the original vector. |
NSTACK | Not used. |
Adopted from the GNU C Library. http://www.corpit.ru/mjt/qsort.html
Definition at line 78 of file ivsort.cpp.
Generated on Wed Sep 7 2022 00:01:32 for ADMB Documentation by 1.8.5 |