From 130b9c25f99340fb8f9109466b420b3155184bd5 Mon Sep 17 00:00:00 2001 From: bbod Date: Mon, 30 Mar 2020 15:24:32 -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 7fa9acb..1dd7942 100644 --- a/HW10/MakePermutationMatrix.cpp +++ b/HW10/MakePermutationMatrix.cpp @@ -20,7 +20,7 @@ std::vector MakePermutationMatrix::MakePermutation(std::vector sou returnVector.resize(source.size(), 0); //the "nextPerm" is the permutation to stop at. - std::rotate(nextPerm.begin(), nextPerm.begin()+offset*(rank+1), nextPerm.end()); + std::rotate(nextPerm.begin(), nextPerm.begin()+offset*rank, nextPerm.end()); //rotate my perm. std::rotate(myPerm.begin(), myPerm.begin()+offset*rank,myPerm.end());