diff --git a/HW10/MakePermutationMatrix.cpp b/HW10/MakePermutationMatrix.cpp index 2b936b6..5bb629d 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; @@ -15,7 +15,7 @@ std::vector MakePermutationMatrix::MakePermutation(std::vector sou std::sort(source.begin(), source.end()); std::vector myPerm = source; std::vector nextPerm = source; - auto lowest = INT_MAX; + auto lowest = LDBL_MAX; //return vector should be the size of number of processors as they are going to only return their own smallest. returnVector.resize(source.size(), 0);