19 #define int_lt(a,b) ((*a)<(*b))
28 #define int_lt(a,b) ((*a)<(*b))
43 unsigned int size = v.
size();
44 int* intarray =
new int[size];
45 for(
unsigned int i = 0; i < size; ++i)
57 for(
unsigned int i = 0; i < size; ++i)
59 arr(lb) = intarray[i];
83 cerr <<
" Incompatible array sizes in vector v and ivector index\n"
84 <<
" in ivector sort(const ivector& v, const ivector& index)\n";
88 unsigned int size = v.
size();
89 int* intarray =
new int[size];
90 for (
unsigned int i = 0; i < size; ++i)
96 int* intarray2 =
new int[size];
97 for (
unsigned int i = 0; i < size; ++i)
109 for (
unsigned int i = 0; i < size; ++i)
111 arr(lb) = intarray[i];
115 for (
unsigned int i = 0; i < size; ++i)
117 index(lb) = intarray2[i];
void int_qsort(int *arr, unsigned n)
A subroutine used in Quicksort.
unsigned int size() const
#define QSORT2(QSORT_TYPE, QSORT_TYPE2, QSORT_BASE, QSORT_BASE2, QSORT_NELT, QSORT_LT)
dmatrix sort(const dmatrix &m, int column, int NSTACK)
Description not yet available.
Array of integers(int) with indexes from index_min to indexmax.
#define QSORT(QSORT_TYPE, QSORT_BASE, QSORT_NELT, QSORT_LT)
void int_qsort2(int *arr, int *arr2, unsigned n)
A subroutine used in Quicksort.
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.