Bioplib
Protein Structure C Library
|
Index heapsort a REAL array. More...
Go to the source code of this file.
Functions | |
void | blIndexReal (REAL *arrin, int *indx, int n) |
Index heapsort a REAL array.
This code is NOT IN THE PUBLIC DOMAIN, but it may be copied according to the conditions laid out in the accompanying file COPYING.DOC.
The code may be modified as required, but any modifications must be documented so that the person responsible can be identified.
The code may not be sold commercially or included as part of a commercial product except as described in the file COPYING.DOC.
This routine uses a heapsort to index a floating point array such that arrin[indx[j]] is in ascending order with j. It is modified from the FORTRAN version in 'Numerical Recipes' Page 233. This version correctly sorts from array element 0 as opposed to 1 in the FORTRAN version.
IndexReal(arrin,indx,n); Input: int n Number of elements in array REAL *arrin Array to be indexed Output: int *indx Index array
Definition in file IndxReal.c.
void blIndexReal | ( | REAL * | arrin, |
int * | indx, | ||
int | n | ||
) |
[in] | *arrin | Array to be indexed |
[in] | n | Number of elements in array |
[out] | *indx | Index array |
Index an array by Heapsort.
Definition at line 110 of file IndxReal.c.