From 387149fd67a18c35789b106d2cf97205b0f3f1c6 Mon Sep 17 00:00:00 2001 From: Phexi Date: Thu, 22 Oct 2026 00:33:53 +0200 Subject: [PATCH] added tabulate .. --- compute.py | 4 +++- pyproject.toml | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/compute.py b/compute.py index 0b2f1e5..356a930 100644 --- a/compute.py +++ b/compute.py @@ -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]])) \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 46e3b47..3a776b1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,4 @@ [project] name = "matrixmania" -version = "0.1.0" \ No newline at end of file +version = "0.1.0" +dependencies = ["tabulate", "ruff"] \ No newline at end of file