From 983860b2ee015912fcc0f26dc7beae3a35aac9c5 Mon Sep 17 00:00:00 2001 From: bbod Date: Mon, 30 Mar 2020 23:17:42 -0600 Subject: [PATCH] Auto Commit --- HW10/MakePermutationMatrix.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HW10/MakePermutationMatrix.cpp b/HW10/MakePermutationMatrix.cpp index 90c7200..4338623 100644 --- a/HW10/MakePermutationMatrix.cpp +++ b/HW10/MakePermutationMatrix.cpp @@ -9,7 +9,7 @@ std::vector MakePermutationMatrix::MakePermutation(std::vector source, int rank, int size, std::vector> costMatrix){ std::vector returnVector; - std::vector localCostVector; + std::vector localCostVector; std::size_t counter = 0; int vectorOffset = (source.size())/size; std::sort(source.begin(), source.end()); @@ -44,7 +44,7 @@ std::vector MakePermutationMatrix::MakePermutation(std::vector sou nextPerm = source; } do { - double cost = 0; + std::size_t cost = 0; //Add up the cost of the current permutation. // std::cout <<"Rank: " << rank << " Current perm: "; for (int i = 0; i < myPerm.size(); i++) {