aboutsummaryrefslogtreecommitdiff
path: root/solvers.py
diff options
context:
space:
mode:
authorThomas Albers Raviola <thomas@thomaslabs.org>2024-05-28 11:23:02 +0200
committerThomas Albers Raviola <thomas@thomaslabs.org>2024-05-28 11:23:02 +0200
commit255c2e7b7bf721296d4d4f22cb106ab3cf197e0a (patch)
treeea255bc9397e095d436d9f265037284dfcc0cc06 /solvers.py
parentc24397c9d2ca50b3989de5107498666724e8c50c (diff)
Add unit test with pytest
Diffstat (limited to 'solvers.py')
-rw-r--r--solvers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/solvers.py b/solvers.py
index b544f1b..040c6f4 100644
--- a/solvers.py
+++ b/solvers.py
@@ -114,4 +114,4 @@ def gaussian_eliminate(
y = forward_substitution(ll, pp @ bb)
# U @ x = y
x = back_substitution(uu, y)
- return x
+ return x[:, 0]