aboutsummaryrefslogtreecommitdiffstats
path: root/mdpoly/operations/mul.py
diff options
context:
space:
mode:
Diffstat (limited to 'mdpoly/operations/mul.py')
-rw-r--r--mdpoly/operations/mul.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/mdpoly/operations/mul.py b/mdpoly/operations/mul.py
index 2a8f749..7e75d26 100644
--- a/mdpoly/operations/mul.py
+++ b/mdpoly/operations/mul.py
@@ -10,9 +10,7 @@ from ..index import Shape
from ..errors import AlgebraicError, InvalidShape
from ..index import MatrixIndex, PolyIndex
-from ..expressions import BinaryOp, Reducible
-from ..expressions.matrix import MatrixExpr
-from ..expression.poly import PolyExpr
+from . import BinaryOp, Reducible
if TYPE_CHECKING:
from ..abc import ReprT
@@ -25,7 +23,7 @@ if TYPE_CHECKING:
@dataclassabc
-class MatElemMul(BinaryOp, MatrixExpr):
+class MatElemMul(BinaryOp):
""" Elementwise Matrix Multiplication. """
@property
@@ -64,7 +62,7 @@ class MatElemMul(BinaryOp, MatrixExpr):
@dataclassabc
-class MatScalarMul(BinaryOp, MatrixExpr):
+class MatScalarMul(BinaryOp):
""" Matrix-Scalar Multiplication. Assumes scalar is on the left and matrix
on the right. """
@@ -101,7 +99,7 @@ class MatScalarMul(BinaryOp, MatrixExpr):
@dataclass(eq=False)
-class MatMul(BinaryOp, MatrixExpr):
+class MatMul(BinaryOp):
""" Matrix Multiplication. """
@property
@@ -134,7 +132,7 @@ class MatMul(BinaryOp, MatrixExpr):
@dataclass(eq=False)
-class MatDotProd(BinaryOp, MatrixExpr, Reducible):
+class MatDotProd(BinaryOp, Reducible):
""" Dot product. """
@property
@@ -157,7 +155,7 @@ class MatDotProd(BinaryOp, MatrixExpr, Reducible):
@dataclass(eq=False)
-class PolyMul(BinaryOp, PolyExpr):
+class PolyMul(BinaryOp):
""" Multiplication operator between scalar polynomials. """
def to_repr(self, repr_type: Type[ReprT], state: State) -> tuple[ReprT, State]: