Template Function find_lowest

Function Documentation

template<typename T>
void find_lowest(vector<T> &x, const size_t Nm, vector<size_t> &index)

finds the nm lowest elements of the vector and puts the associated indices in “index” index is not pre-allocated