From 4b009d55ecc74ca800718fa2bee19393767a1ddd Mon Sep 17 00:00:00 2001 From: Gregor Olenik Date: Fri, 9 Aug 2024 09:43:08 +0200 Subject: [PATCH 01/67] add Repartitioner file --- include/OGL/Repartitioner.H | 606 ++++++++++++++++++++++++++++++++++++ 1 file changed, 606 insertions(+) create mode 100644 include/OGL/Repartitioner.H diff --git a/include/OGL/Repartitioner.H b/include/OGL/Repartitioner.H new file mode 100644 index 000000000..7bab1b863 --- /dev/null +++ b/include/OGL/Repartitioner.H @@ -0,0 +1,606 @@ +// SPDX-FileCopyrightText: 2024 OGL authors +// +// SPDX-License-Identifier: GPL-3.0-or-later + +#pragma once + +#include + +#include "MatrixWrapper/CommunicationPattern/CommunicationPattern.H" +#include "MatrixWrapper/LDUMatrix/HostMatrix.H" + +template +std::vector apply_permutation(const std::vector vec, + const std::vector