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.
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.