diff options
author | Nao Pross <np@0hm.ch> | 2024-03-04 23:42:55 +0100 |
---|---|---|
committer | Nao Pross <np@0hm.ch> | 2024-03-04 23:42:55 +0100 |
commit | 17cdda003bd11d0d2420f524e07d45baa52f5b9c (patch) | |
tree | 18c564a6553cc16268fa4ba7b8ea29eb3dc56dc3 | |
parent | Remove useless unimplemented methods in representations (diff) | |
download | mdpoly-17cdda003bd11d0d2420f524e07d45baa52f5b9c.tar.gz mdpoly-17cdda003bd11d0d2420f524e07d45baa52f5b9c.zip |
Temporary fix to get rid of weird errors
-rw-r--r-- | mdpoly/algebra.py | 7 |
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) |