From 3880163b923e372f67a8c0f12e6d25b9ffc4ae28 Mon Sep 17 00:00:00 2001 From: fischerth80683 Date: Thu, 6 Nov 2025 15:53:32 +0100 Subject: [PATCH] Paketerstellungsaufgabe --- README.md | 11 +++++++++++ matrixmania/__init__.py | 1 + compute.py => matrixmania/compute.py | 0 pyproject.toml | 16 ++++++++++++++++ 4 files changed, 28 insertions(+) create mode 100644 README.md create mode 100644 matrixmania/__init__.py rename compute.py => matrixmania/compute.py (100%) create mode 100644 pyproject.toml diff --git a/README.md b/README.md new file mode 100644 index 0000000..2e0cac7 --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +# Meine Matrixmania + +Dieses Modul macht Matrixsachen + +---Funktionen die es gibt sind: + +def matmul(mA:list[list[int]], mB:list[list[int]]) -> list[list[int]]: + +def transpose(matrix:list[list[int]]) -> list[list[int]]: + +def rot_2D(bogenmaß: float) -> list[list[float]]: diff --git a/matrixmania/__init__.py b/matrixmania/__init__.py new file mode 100644 index 0000000..2dbdec6 --- /dev/null +++ b/matrixmania/__init__.py @@ -0,0 +1 @@ +from .compute import matmul, transpose, rot_2D diff --git a/compute.py b/matrixmania/compute.py similarity index 100% rename from compute.py rename to matrixmania/compute.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..33fcf96 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,16 @@ +[project] +name = "matrixmania_fischerth80683" +version = "0.1.0" +description = "MatrixMania: Simple linear algebra functions for teaching (matmul, transpose,rot_2D)." +authors = [ + { name="Dein Name", email="deine.mail@th-nuernberg.de" } +] +readme = "README.md" +license = { text = "MIT" } +requires-python = ">=3.7" +dependencies = ["tabulate"] +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" +[tool.hatch.build.targets.wheel] +packages = ["matrixmania"] \ No newline at end of file