Changeset 825 for trunk/yat/utility/utility.h
- Timestamp:
- Mar 19, 2007, 1:46:10 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/utility/utility.h
r737 r825 64 64 bool is_nan(const std::string& s); 65 65 66 /**67 This function returns the indices of the minimum and maximum68 values in the sub-vector (defined by \a subset), storing them in69 imin and imax. When there are several equal minimum or maximum70 elements then the lowest indices are returned. The returned index71 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 invec82 */83 void shuffle(vector& invec);84 66 85 67
Note: See TracChangeset
for help on using the changeset viewer.