Correct ruff failures (#8732)

* fix: Correct ruff problems

* updating DIRECTORY.md

* fix: Fix pre-commit errors

* updating DIRECTORY.md

---------

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
Caeden Perelli-Harris
2023-05-14 22:03:13 +01:00
committed by GitHub
parent 793e564e1d
commit 1faf10b5c2
9 changed files with 22 additions and 20 deletions

View File

@@ -122,7 +122,7 @@ def strassen(matrix1: list, matrix2: list) -> list:
if dimension1[0] == dimension1[1] and dimension2[0] == dimension2[1]:
return [matrix1, matrix2]
maximum = max(max(dimension1), max(dimension2))
maximum = max(dimension1, dimension2)
maxim = int(math.pow(2, math.ceil(math.log2(maximum))))
new_matrix1 = matrix1
new_matrix2 = matrix2