summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--polymatrix/polymatrix/typing.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/polymatrix/polymatrix/typing.py b/polymatrix/polymatrix/typing.py
index 83a5960..8626cf3 100644
--- a/polymatrix/polymatrix/typing.py
+++ b/polymatrix/polymatrix/typing.py
@@ -17,12 +17,12 @@ class VariableIndex(NamedTuple):
example if :math:`x` had index 0, :math:`y` has index 1, then :math:`y
\succeq x`, the exponent does not matter so :math:`y \succeq x^2`.
"""
- variable: int # index in ExpressionState object
+ index: int # index in ExpressionState object
power: int
def __lt__(self, other):
""" Variables indices can be sorted with respect to variable index. """
- return self.variable < other.variable
+ return self.index < other.index
class MonomialIndex(tuple[VariableIndex]):