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