diff options
-rw-r--r-- | polymatrix/polymatrix/init.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) } |