Changeset 945
- Timestamp:
- Jun 9, 2004, 8:23:22 AM (22 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 3 edited
-
collections/psSort.h (modified) (3 diffs)
-
collections/psVector.c (modified) (1 diff)
-
mathtypes/psVector.c (modified) (1 diff)
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 * -
trunk/psLib/src/collections/psVector.c
r871 r945 1 /** @file psVector. h1 /** @file psVector.c 2 2 * 3 3 * @brief Contains support for basic vector types 4 4 * 5 * This file defines types and functions for one dimensional vectors which include: 6 * char 7 * short 8 * int 9 * long 10 * unsigned char 11 * unsigned short 12 * unsigned int 13 * unsigned long 14 * float 15 * double 16 * complex float 17 * void ** 5 * This file defines the basic type for a vector struct and functions useful 6 * in manupulating vectors. 18 7 * 19 8 * @author Ross Harman, MHPCC 20 * 21 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $22 * @date $Date: 2004-06-0 4 21:10:26$9 * 10 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2004-06-09 18:20:01 $ 23 12 * 24 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii -
trunk/psLib/src/mathtypes/psVector.c
r871 r945 1 /** @file psVector. h1 /** @file psVector.c 2 2 * 3 3 * @brief Contains support for basic vector types 4 4 * 5 * This file defines types and functions for one dimensional vectors which include: 6 * char 7 * short 8 * int 9 * long 10 * unsigned char 11 * unsigned short 12 * unsigned int 13 * unsigned long 14 * float 15 * double 16 * complex float 17 * void ** 5 * This file defines the basic type for a vector struct and functions useful 6 * in manupulating vectors. 18 7 * 19 8 * @author Ross Harman, MHPCC 20 * 21 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $22 * @date $Date: 2004-06-0 4 21:10:26$9 * 10 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2004-06-09 18:20:01 $ 23 12 * 24 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii
Note:
See TracChangeset
for help on using the changeset viewer.
