Skip to content

Commit 144024b

Browse files
committed
feat: Strassen's matrix multiplication algorithm added
1 parent 7d59f4c commit 144024b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

matrix/strassen_matrix_multiply.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,5 +193,5 @@ def _strassen_recursive(matrix_a: Matrix, matrix_b: Matrix, threshold: int) -> M
193193
print(row)
194194

195195
expected = naive_mul(A, B)
196-
assert C == expected, "Strassen result differs from naive multiplication!"
196+
assert expected == C, "Strassen result differs from naive multiplication!"
197197
print("Verified: result matches naive multiplication.")

0 commit comments

Comments
 (0)