added comments in quicksort_index.cc
authoranastas <anastas@221aa14e-8319-0410-a670-987f0aec2ac5>
Tue, 6 Feb 2007 03:02:33 +0000 (03:02 +0000)
committeranastas <anastas@221aa14e-8319-0410-a670-987f0aec2ac5>
Tue, 6 Feb 2007 03:02:33 +0000 (03:02 +0000)
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@4394 221aa14e-8319-0410-a670-987f0aec2ac5

gr-trellis/src/lib/quicksort_index.cc

index fbb05d4824f2b4a3558ab8eb4073df6c2c5bbe41..cffab8e02cf1b82de3fe298d145087c3b25d3340 100644 (file)
@@ -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 <class T> void quicksort_index(std::vector<T> & p, std::vector<int> & 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<int> & p, std::vector<int> & index, int left, int right)
 {