From 7f26976a32513540d94dff3fc5bf3d7d2033f7e4 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Tue, 7 May 2024 00:31:14 +0200 Subject: Fix bug in constructor of PolyMatrixAsAffineExpr --- polymatrix/polymatrix/init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymatrix/polymatrix/init.py b/polymatrix/polymatrix/init.py index af09111..6fcdcb1 100644 --- a/polymatrix/polymatrix/init.py +++ b/polymatrix/polymatrix/init.py @@ -67,7 +67,7 @@ def to_affine_expression(p: PolyMatrixMixin) -> PolyMatrixAsAffineExpressionMixi # Generate slices to index sub-matrices slices = { - m: tuple(range(i*ncols, (i+1)*ncols)) + m: tuple(range(i*ncols, (i+1)*ncols +1)) for i, m in enumerate(monomials) } -- cgit v1.2.1