From bd8b5ed46952ca815e383e032456fac7d3eec342 Mon Sep 17 00:00:00 2001 From: bbod Date: Mon, 30 Mar 2020 23:41:41 -0600 Subject: [PATCH] Auto Commit --- HW10/MakePermutationMatrix.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/HW10/MakePermutationMatrix.cpp b/HW10/MakePermutationMatrix.cpp index 2544579..e12b4b5 100644 --- a/HW10/MakePermutationMatrix.cpp +++ b/HW10/MakePermutationMatrix.cpp @@ -6,7 +6,7 @@ #include "mpi.h" #include #include -#include +#include std::vector MakePermutationMatrix::MakePermutation(std::vector source, int rank, int size, std::vector> costMatrix){ std::vector returnVector; @@ -47,13 +47,13 @@ std::vector MakePermutationMatrix::MakePermutation(std::vector sou do { std::size_t cost = 0; //Add up the cost of the current permutation. - // std::cout <<"Rank: " << rank << " Current perm: "; - std::cout << "Rank: "<< rank; + // std::cout <<"Rank: " << rank << " Current perm: "; + //std::cout << "Rank: "<< rank; for (int i = 0; i < myPerm.size(); i++) { - std::cout << " " << myPerm[i].GetName(); + //std::cout << " " << myPerm[i].GetName(); cost += costMatrix[myPerm[i].GetName()][myPerm[i-1].GetName()]; } - std::cout << std::endl << std::endl; + //std::cout << std::endl << std::endl; if(cost < lowest) lowest = cost; //Push permutation cost to the localCostVector.