summaryrefslogtreecommitdiffstats
path: root/polymatrix/impl/oldpolymatriximpl.py
diff options
context:
space:
mode:
Diffstat (limited to 'polymatrix/impl/oldpolymatriximpl.py')
-rw-r--r--polymatrix/impl/oldpolymatriximpl.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/polymatrix/impl/oldpolymatriximpl.py b/polymatrix/impl/oldpolymatriximpl.py
new file mode 100644
index 0000000..29590db
--- /dev/null
+++ b/polymatrix/impl/oldpolymatriximpl.py
@@ -0,0 +1,15 @@
+import typing
+import dataclass_abc
+
+from polymatrix.oldpolymatrix import OldPolyMatrix
+
+
+@dataclass_abc.dataclass_abc(frozen=True, eq=False)
+class PolyMatrixImpl(OldPolyMatrix):
+ name: str
+ degrees: list[int]
+ subs: dict[int, dict[tuple[int, int], float]]
+ re_index: typing.Callable[[int, int, int, tuple[int, ...]], tuple[int, int, int, tuple[int, ...], float]]
+ is_constant: bool
+ shape: tuple[int, int]
+ is_negated: bool