From 0a77b825481c4ad034b292dbdd99355c656483e0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C3=ABl=20El=20Kharroubi?=
 <michael.el-kharroubi@hesge.ch>
Date: Sun, 3 Mar 2024 21:49:50 +0100
Subject: [PATCH] Format

---
 Correction/heat_gpu.cpp | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/Correction/heat_gpu.cpp b/Correction/heat_gpu.cpp
index fff45c0..7b66094 100644
--- a/Correction/heat_gpu.cpp
+++ b/Correction/heat_gpu.cpp
@@ -21,15 +21,14 @@ void stepSlow(Matrix<T> &current, Matrix<T> &next) {
                    nxt = next.dataSpan(),
                    cols](int i) {
                       auto idxs_cols = std::views::iota(1, cols - 1);
-                      std::for_each(
-                          idxs_cols.begin(), idxs_cols.end(),
-                          [cur, nxt, cols, row = i * cols](int j) {
-                              auto idx = row + j;  // we need a 1d index for the spans
-                              nxt[idx] = 0.25 * (cur[idx - 1] +
-                                                 cur[idx + 1] +
-                                                 cur[idx - cols] +
-                                                 cur[idx + cols]);
-                          });
+                      std::for_each(idxs_cols.begin(), idxs_cols.end(),
+                                    [cur, nxt, cols, row = i * cols](int j) {
+                                        auto idx = row + j;  // we need a 1d index for the spans
+                                        nxt[idx] = 0.25 * (cur[idx - 1] +
+                                                           cur[idx + 1] +
+                                                           cur[idx - cols] +
+                                                           cur[idx + cols]);
+                                    });
                   });
 }
 
-- 
GitLab