From 28deb5fa4d865f4b376570f27465e3e7abc631bc Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Fri, 7 Jun 2024 18:14:37 +0200 Subject: Fix bug in MaxExpr --- polymatrix/expression/mixins/maxexprmixin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymatrix/expression/mixins/maxexprmixin.py b/polymatrix/expression/mixins/maxexprmixin.py index 30d3917..dab842d 100644 --- a/polymatrix/expression/mixins/maxexprmixin.py +++ b/polymatrix/expression/mixins/maxexprmixin.py @@ -51,7 +51,7 @@ class MaxExprMixin(ExpressionBaseMixin): elif ncols == 1: maximum = None for row in range(nrows): - if poly := underlying.at(row, col): + if poly := underlying.at(row, 0): if poly.degree > 0: raise ValueError("Cannot take maximum of non-costant vector. " f"Entry at {(row, 0)} has degree {poly.degree}.") -- cgit v1.2.1