From aea2f5a0bd7ec74d58b86220509c929bab8c2fb6 Mon Sep 17 00:00:00 2001 From: bbod Date: Mon, 30 Mar 2020 21:35:29 -0600 Subject: [PATCH] Auto Commit --- HW10/MakePermutationMatrix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HW10/MakePermutationMatrix.cpp b/HW10/MakePermutationMatrix.cpp index 7eb71ad..48a7531 100644 --- a/HW10/MakePermutationMatrix.cpp +++ b/HW10/MakePermutationMatrix.cpp @@ -21,7 +21,7 @@ std::vector MakePermutationMatrix::MakePermutation(std::vector sou //the "nextPerm" is the permutation to stop at. std::rotate(nextPerm.begin(), nextPerm.begin()+(rank+vectorOffset), nextPerm.end()); - + std::partial_sort(nextPerm.begin()+1, nextPerm.end(), nextPerm.end()); //rotate my perm. std::rotate(myPerm.begin(), myPerm.begin()+rank,myPerm.end()); //std::cout << "source.last(): " << source[8].GetName() << std::endl;