Changeset 877 for trunk/yat/utility/vector.h
- Timestamp:
- Sep 20, 2007, 9:01:57 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/utility/vector.h
r865 r877 536 536 537 537 /** 538 Create a vector \a sort_index containing the indeces of 539 elements in a another vector \a invec. The elements of \a 540 sort_index give the index of the vector element which would 541 have been stored in that position if the vector had been sorted 542 in place. The first element of \a sort_index gives the index of the least 543 element in \a invec, and the last element of \a sort_index gives the index of the 544 greatest element in \a invec . The vector \a invec is not changed. 545 546 */ 547 void sort_index(std::vector<size_t>& sort_index, vector& invec); 548 549 550 /** 538 551 \brief Calculate the sum of all vector elements. 539 552
Note: See TracChangeset
for help on using the changeset viewer.