diff options
author | Nao Pross <np@0hm.ch> | 2024-04-16 19:29:49 +0200 |
---|---|---|
committer | Nao Pross <np@0hm.ch> | 2024-04-16 19:29:49 +0200 |
commit | d2df9f6f5647124b794f8855b57948c33a8258d1 (patch) | |
tree | 20e10950643c8bddf84b959ffe6529a48117af4f | |
parent | Update ExpressionState, breaking change (diff) | |
download | polymatrix-d2df9f6f5647124b794f8855b57948c33a8258d1.tar.gz polymatrix-d2df9f6f5647124b794f8855b57948c33a8258d1.zip |
Variables are scalar unless specified otherwise
Diffstat (limited to '')
-rw-r--r-- | polymatrix/expression/init.py | 2 |
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) |