added tabulate ..
This commit is contained in:
1 parent
7e5d712df2
commit
387149fd67
2 files changed
+4
-1
No files matched your search
+3
-1
@@ -17,6 +17,8 @@ __all__: list[str] = ["matmul", "transpose"]
|
||||
|
||||
import math
|
||||
|
||||
from tabulate import tabulate
|
||||
|
||||
|
||||
def matmul(
|
||||
matrix_a: list[list[float]],
|
||||
@@ -131,5 +133,5 @@ def transpose(matrix: list[list[float]]) -> list[list[float]]:
|
||||
if __name__ == "__main__":
|
||||
# testing and shit
|
||||
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]]))
|
||||
@@ -1,3 +1,4 @@
|
||||
[project]
|
||||
name = "matrixmania"
|
||||
version = "0.1.0"
|
||||
dependencies = ["tabulate", "ruff"]
|
||||
Reference in new issue
Block a user