From fa0fbf83f5528cd0260ea00623b28341462b9df1 Mon Sep 17 00:00:00 2001 From: Markus Machmerth Date: Mon, 22 Dec 2025 09:24:15 +0100 Subject: [PATCH] return Matrix in case somebody private function modifies Matrix this way --- stufen/checks/main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stufen/checks/main.py b/stufen/checks/main.py index 3cb5714..acf002c 100644 --- a/stufen/checks/main.py +++ b/stufen/checks/main.py @@ -21,14 +21,16 @@ def matrices_almost_equal(actual, expected, eps=1e-6): def a(a, b, c, d): if not (0 <= b < len(a)) or not (0 <= c < len(a)) or d == 0: - return + return a a[c] = [x + d * y for x, y in zip(a[c], a[b])] + return a def m(a, b, c): if not (0 <= b < len(a)) or c == 0: - return + return a a[b] = [x * c if x != 0 else x for x in a[b]] + return a @check50.check()