diff options
Diffstat (limited to '')
-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) |