Skip to content

Commit f214087

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b8a2aa5 commit f214087

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

maths/lu_decomposition.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
Reference: https://en.wikipedia.org/wiki/LU_decomposition
1414
"""
1515

16-
1716
Matrix = list[list[float]]
1817

1918

@@ -100,8 +99,7 @@ def lu_decomposition(
10099
# Check for zero pivot
101100
if upper[k][k] == 0:
102101
raise ValueError(
103-
"Zero pivot encountered. "
104-
"Matrix may be singular or require pivoting."
102+
"Zero pivot encountered. Matrix may be singular or require pivoting."
105103
)
106104

107105
# Compute the k-th column of L

0 commit comments

Comments
 (0)