diff options
author | Nao Pross <np@0hm.ch> | 2024-05-04 17:23:50 +0200 |
---|---|---|
committer | Nao Pross <np@0hm.ch> | 2024-05-04 17:23:50 +0200 |
commit | 770b803eb05f52330dda7275eef2ed2592bf1247 (patch) | |
tree | aedf7fb1022146c921b2484239596d4b6c40f4da | |
parent | Remove expression dependency in expressionstate (diff) | |
download | polymatrix-770b803eb05f52330dda7275eef2ed2592bf1247.tar.gz polymatrix-770b803eb05f52330dda7275eef2ed2592bf1247.zip |
Rename member VariableIndex.variable to VariableIndex.index
Diffstat (limited to '')
-rw-r--r-- | polymatrix/polymatrix/typing.py | 4 |
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]): |