T O P I C R E V I E W |
Gutalin |
Posted - 05/25/2010 : 05:18:45 AM Hi all, I have a problem with the sort-function. I'd like to sort a double-type vector so as to get a new vector with values in ascending order and a second vector with indices of these values from the unsorted vector.
Thats exactly what the vector.sort-function is for, I guess, but I don't know how to create the indices-vector.
Could someone help me?
Thanks in advance!
Jurij |
1 L A T E S T R E P L I E S (Newest First) |
Penn |
Posted - 05/25/2010 : 9:17:48 PM Hi Jurij,
Yes, there is a method named Sort in vectorbase class. This method can satisfy your requirement. This page has provided the prototype and examples on how to use it.
Penn |
|
|