From 770b803eb05f52330dda7275eef2ed2592bf1247 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Sat, 4 May 2024 17:23:50 +0200 Subject: Rename member VariableIndex.variable to VariableIndex.index --- polymatrix/polymatrix/typing.py | 4 ++-- 1 file 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]): -- cgit v1.2.1