summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2024-05-24 18:49:22 +0200
committerNao Pross <np@0hm.ch>2024-05-24 18:49:22 +0200
commit6adedbb1496690edadac02abfe33a4da6b1257ef (patch)
treef200031ce763ca689ff99069ba02c7d517d6e14c
parentAllow shape of VariableExpr to be an Expression (diff)
downloadpolymatrix-6adedbb1496690edadac02abfe33a4da6b1257ef.tar.gz
polymatrix-6adedbb1496690edadac02abfe33a4da6b1257ef.zip
Make Expression.shape a property
Diffstat (limited to '')
-rw-r--r--polymatrix/expression/expression.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/polymatrix/expression/expression.py b/polymatrix/expression/expression.py
index 195a256..d697aed 100644
--- a/polymatrix/expression/expression.py
+++ b/polymatrix/expression/expression.py
@@ -359,6 +359,7 @@ class Expression(ExpressionBaseMixin, ABC):
),
)
+ @property
def shape(self) -> Expression:
return self.copy(underlying=polymatrix.expression.init.init_shape_expr(self.underlying))