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);
|
returnVector.resize(source.size(), 0);
|
||||||
|
|
||||||
//the "nextPerm" is the permutation to stop at.
|
//the "nextPerm" is the permutation to stop at.
|
||||||
std::rotate(nextPerm.begin(), nextPerm.begin()+offset*rank, nextPerm.end());
|
std::rotate(nextPerm.begin(), nextPerm.begin()+2, nextPerm.end());
|
||||||
|
|
||||||
//rotate my perm.
|
//rotate my perm.
|
||||||
std::rotate(myPerm.begin(), myPerm.begin()+offset*rank,myPerm.end());
|
std::rotate(myPerm.begin(), myPerm.begin()+offset*rank,myPerm.end());
|
||||||
|
|||||||
Reference in New Issue
Block a user