Changeset 945 for trunk/psLib/src/collections/psSort.h
- Timestamp:
- Jun 9, 2004, 8:23:22 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/collections/psSort.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psSort.h
r645 r945 1 1 /** @file psSort.h 2 2 * 3 * @brief Sorts arrays3 * @brief Sorts vectors 4 4 * 5 * The psSort functions use the qsort() stdlib function with a user-defined callback to sort an array of 6 * floats. The qsort function requires the starting point of the array, number of elements in the array, size 5 * The psSort functions use the qsort() stdlib function with a user-defined callback to sort an array of 6 * floats. The qsort function requires the starting point of the array, number of elements in the array, size 7 7 * of each element, and a pointer to a callback comparison function. Once called, qsort() will sort the array 8 8 * contents in ascending order according to the comparison function. The comparison function is called with 9 * two arguments that point to the objects being compared - in this case two floats. The comparison function 9 * two arguments that point to the objects being compared - in this case two floats. The comparison function 10 10 * must return an integer less than, equal to, or greater than zero if the first argument is considered to be 11 11 * respectively less than, equal to, or greater than the second. If two members compare as equal, their order … … 13 13 * 14 14 * @author Ross Harman, MHPCC 15 * 16 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $17 * @date $Date: 2004-0 5-12 18:07:22 $15 * 16 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 17 * @date $Date: 2004-06-09 18:23:22 $ 18 18 * 19 19 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 50 50 /** Creates an array of indices based on sort odred of float array. 51 51 * 52 * Sorts an array of floats and creates an integer array holding indices of sorted float values based on 52 * Sorts an array of floats and creates an integer array holding indices of sorted float values based on 53 53 * pre-sort index positions. 54 54 *
Note:
See TracChangeset
for help on using the changeset viewer.
