From d2df9f6f5647124b794f8855b57948c33a8258d1 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Tue, 16 Apr 2024 19:29:49 +0200 Subject: Variables are scalar unless specified otherwise --- polymatrix/expression/init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.1