summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2024-05-04 17:23:50 +0200
committerNao Pross <np@0hm.ch>2024-05-04 17:23:50 +0200
commit770b803eb05f52330dda7275eef2ed2592bf1247 (patch)
treeaedf7fb1022146c921b2484239596d4b6c40f4da
parentRemove expression dependency in expressionstate (diff)
downloadpolymatrix-770b803eb05f52330dda7275eef2ed2592bf1247.tar.gz
polymatrix-770b803eb05f52330dda7275eef2ed2592bf1247.zip
Rename member VariableIndex.variable to VariableIndex.index
-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]):