Auto Commit
This commit is contained in:
@@ -20,7 +20,7 @@ std::vector<double> MakePermutationMatrix::MakePermutation(std::vector<City> sou
|
||||
returnVector.resize(source.size(), 0);
|
||||
|
||||
//the "nextPerm" is the permutation to stop at.
|
||||
if(rank != size)
|
||||
if(rank != size-1)
|
||||
std::rotate(nextPerm.begin(), nextPerm.begin() + (rank + 1 + vectorOffset), nextPerm.end());
|
||||
|
||||
std::partial_sort(nextPerm.begin()+1, nextPerm.end(), nextPerm.end());
|
||||
|
||||
Reference in New Issue
Block a user