IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 15, 2004, 1:52:34 PM (22 years ago)
Author:
desonia
Message:

Changed psSort and psSortIndex to psVectorSort and psVectorSortIndex as well as added support for all non-complex datatypes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/collections/psVector.h

    r1228 r1233  
    1111 *  @author Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2004-07-15 22:18:02 $
     13 *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2004-07-15 23:52:33 $
    1515 *
    1616 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    9999);
    100100
     101/** Sort an array of floats.
     102 *
     103 *  Sorts an array of floats in ascending order.  This function is valid for
     104 *  all non-complex data types.
     105 *
     106 *  @return  psFloatArray*: Pointer to sorted psFloatArray.
     107 */
     108
     109psVector *psVectorSort(
     110    psVector *restrict outVector,  ///< the output vector to recycle, or NULL if new vector desired.
     111    const psVector *restrict inVector ///< the vector to sort.
     112);
     113
     114/** Creates an array of indices based on sort odred of float array.
     115 *
     116 *  Sorts an array of floats and creates an integer array holding indices of
     117 *  sorted float values based on pre-sort index positions. 
     118 *
     119 *  @return  psIntArray*: Pointer to psIntArray of sorted indices.
     120 */
     121
     122psVector *psVectorSortIndex(
     123    psVector *restrict outVector,
     124    const psVector *restrict inVector
     125);
     126
     127
    101128/// @}
    102129
Note: See TracChangeset for help on using the changeset viewer.