From ed023ec8e725fe75bb70366ad6a8fd381daf894f Mon Sep 17 00:00:00 2001 From: bbod Date: Mon, 30 Mar 2020 18:16:15 -0600 Subject: [PATCH] Auto Commit --- HW10/MakePermutationMatrix.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/HW10/MakePermutationMatrix.cpp b/HW10/MakePermutationMatrix.cpp index 0c7a2a0..3b614d9 100644 --- a/HW10/MakePermutationMatrix.cpp +++ b/HW10/MakePermutationMatrix.cpp @@ -16,19 +16,18 @@ std::vector MakePermutationMatrix::MakePermutation(std::vector sou std::vector myPerm = source; std::vector nextPerm = source; - if(!rank){ - size_t totalNumPermutations = 1; - for(size_t i = 1; i <= source.size(); i++) - totalNumPermutations *= i; - offset = totalNumPermutations/size; - std::cout << "offset: "<