Ignore:
Timestamp:
Mar 19, 2007, 1:46:10 PM (16 years ago)
Author:
Peter
Message:

removed minmax functions and moved shuffle into vector.*

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/utility.h

    r737 r825  
    6464  bool is_nan(const std::string& s);
    6565
    66   /**
    67      This function returns the indices of the minimum and maximum
    68      values in the sub-vector (defined by \a subset), storing them in
    69      imin and imax. When there are several equal minimum or maximum
    70      elements then the lowest indices are returned. The returned index
    71      is the index from the complete vector (not the sub-vector)
    72 
    73      @return Index corresponding to the smallest and largest value.
    74 
    75      @note If \a subset is emtpy, the result is undefined.
    76   */
    77   std::pair<size_t,size_t> minmax_index(const vector& vec,
    78                                         const std::vector<size_t>& subset);
    79 
    80   /**
    81      Randomly shuffles the elements in vector \a invec
    82   */
    83   void shuffle(vector& invec);
    8466
    8567
Note: See TracChangeset for help on using the changeset viewer.