diff --git a/HW10/MakePermutationMatrix.cpp b/HW10/MakePermutationMatrix.cpp index d8173e3..7c5328a 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. if(rank != size-1) - std::rotate(nextPerm.begin(), nextPerm.begin() + (rank + 1 + vectorOffset), nextPerm.end()); + std::rotate(nextPerm.begin(), nextPerm.begin() + (rank + vectorOffset), nextPerm.end()); std::partial_sort(nextPerm.begin()+1, nextPerm.end(), nextPerm.end()); //rotate my perm.