summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2024-04-16 19:29:49 +0200
committerNao Pross <np@0hm.ch>2024-04-16 19:29:49 +0200
commitd2df9f6f5647124b794f8855b57948c33a8258d1 (patch)
tree20e10950643c8bddf84b959ffe6529a48117af4f
parentUpdate ExpressionState, breaking change (diff)
downloadpolymatrix-d2df9f6f5647124b794f8855b57948c33a8258d1.tar.gz
polymatrix-d2df9f6f5647124b794f8855b57948c33a8258d1.zip
Variables are scalar unless specified otherwise
Diffstat (limited to '')
-rw-r--r--polymatrix/expression/init.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/polymatrix/expression/init.py b/polymatrix/expression/init.py
index 4fc401e..7d708f6 100644
--- a/polymatrix/expression/init.py
+++ b/polymatrix/expression/init.py
@@ -526,5 +526,5 @@ def init_truncate_expr(
)
-def init_variable_expr(name: str, shape: tuple[int, int]):
+def init_variable_expr(name: str, shape: tuple[int, int] = (1, 1)):
return polymatrix.expression.impl.VariableImpl(name, shape)