aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2024-03-04 23:42:55 +0100
committerNao Pross <np@0hm.ch>2024-03-04 23:42:55 +0100
commit17cdda003bd11d0d2420f524e07d45baa52f5b9c (patch)
tree18c564a6553cc16268fa4ba7b8ea29eb3dc56dc3
parentRemove useless unimplemented methods in representations (diff)
downloadmdpoly-17cdda003bd11d0d2420f524e07d45baa52f5b9c.tar.gz
mdpoly-17cdda003bd11d0d2420f524e07d45baa52f5b9c.zip
Temporary fix to get rid of weird errors
-rw-r--r--mdpoly/algebra.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/mdpoly/algebra.py b/mdpoly/algebra.py
index 3328d19..7085b42 100644
--- a/mdpoly/algebra.py
+++ b/mdpoly/algebra.py
@@ -513,7 +513,10 @@ class MatMul(Expr, MatrixAlgebra):
@unary_operator(MatrixAlgebra)
-class MatTranspose(HasRepr, MatrixAlgebra):
+class MatTranspose(Expr, MatrixAlgebra):
""" Matrix transposition """
- # def to_repr(self,
+ @property
+ def shape(self) -> Shape:
+ """ See :py:meth:`mdpoly.abc.Expr.shape`. """
+ return Shape(self.inner.cols, self.inner.rows)