added tabulate ..

This commit is contained in:
Phexi committed 2026-10-22 00:33:53 +02:00
1 parent 7e5d712df2
commit 387149fd67
2 files changed
+4 -1

No files matched your search

+3 -1
View File
@@ -17,6 +17,8 @@ __all__: list[str] = ["matmul", "transpose"]
import math import math
from tabulate import tabulate
def matmul( def matmul(
matrix_a: list[list[float]], matrix_a: list[list[float]],
@@ -131,5 +133,5 @@ def transpose(matrix: list[list[float]]) -> list[list[float]]:
if __name__ == "__main__": if __name__ == "__main__":
# testing and shit # testing and shit
print(matmul([[1, 2], [3, 4]], [[5, 6], [7, 8]])) print(matmul([[1, 2], [3, 4]], [[5, 6], [7, 8]]))
print(transpose([[1, 2], [3, 4]])) print(tabulate(([[1, 2], [3, 4]])))
print(len([[1],[0]])) print(len([[1],[0]]))
+1
View File
@@ -1,3 +1,4 @@
[project] [project]
name = "matrixmania" name = "matrixmania"
version = "0.1.0" version = "0.1.0"
dependencies = ["tabulate", "ruff"]