Skip to content

Commit 4f1214e

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

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

linear_algebra/matrix_trace.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,7 @@ def test_trace() -> None:
9191

9292
# Test 2: 3x3 matrix
9393
matrix_3x3 = np.array(
94-
[[2.0, -1.0, 3.0],
95-
[4.0, 5.0, -2.0],
96-
[1.0, 0.0, 7.0]],
97-
dtype=float
94+
[[2.0, -1.0, 3.0], [4.0, 5.0, -2.0], [1.0, 0.0, 7.0]], dtype=float
9895
)
9996
tr_3x3 = trace(matrix_3x3)
10097
assert abs(tr_3x3 - 14.0) < 1e-10, "3x3 trace calculation failed"

0 commit comments

Comments
 (0)