diff options
author | Nao Pross <np@0hm.ch> | 2024-05-24 18:49:22 +0200 |
---|---|---|
committer | Nao Pross <np@0hm.ch> | 2024-05-24 18:49:22 +0200 |
commit | 6adedbb1496690edadac02abfe33a4da6b1257ef (patch) | |
tree | f200031ce763ca689ff99069ba02c7d517d6e14c | |
parent | Allow shape of VariableExpr to be an Expression (diff) | |
download | polymatrix-6adedbb1496690edadac02abfe33a4da6b1257ef.tar.gz polymatrix-6adedbb1496690edadac02abfe33a4da6b1257ef.zip |
Make Expression.shape a property
Diffstat (limited to '')
-rw-r--r-- | polymatrix/expression/expression.py | 1 |
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)) |