From: anastas Date: Tue, 6 Feb 2007 03:02:33 +0000 (+0000) Subject: added comments in quicksort_index.cc X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=8d772aff591235ec029cf967fdf6d7dd17cf6a78;p=debian%2Fgnuradio added comments in quicksort_index.cc git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@4394 221aa14e-8319-0410-a670-987f0aec2ac5 --- diff --git a/gr-trellis/src/lib/quicksort_index.cc b/gr-trellis/src/lib/quicksort_index.cc index fbb05d48..cffab8e0 100644 --- a/gr-trellis/src/lib/quicksort_index.cc +++ b/gr-trellis/src/lib/quicksort_index.cc @@ -30,6 +30,8 @@ b=temp; } +// standard quicksorting but also return the indices of the sorted data +// don't know how to make it work with swig... template void quicksort_index(std::vector & p, std::vector & index, int left, int right) { @@ -58,6 +60,7 @@ if (left < right) { +// Same as above (only works for int data) void quicksort_index1(std::vector & p, std::vector & index, int left, int right) {