From 17cdda003bd11d0d2420f524e07d45baa52f5b9c Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Mon, 4 Mar 2024 23:42:55 +0100 Subject: Temporary fix to get rid of weird errors --- mdpoly/algebra.py | 7 +++++-- 1 file 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) -- cgit v1.2.1