diff options
-rw-r--r-- | polymatrix/expression/mixins/tosortedvariablesmixin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/polymatrix/expression/mixins/tosortedvariablesmixin.py b/polymatrix/expression/mixins/tosortedvariablesmixin.py index d839ef7..441634b 100644 --- a/polymatrix/expression/mixins/tosortedvariablesmixin.py +++ b/polymatrix/expression/mixins/tosortedvariablesmixin.py @@ -23,7 +23,7 @@ class ToSortedVariablesMixin(ExpressionBaseMixin): def gen_sorted_vector(): for row, index in enumerate(sorted(variable_indices)): - yield (row, 1), {((index, 1),): 1} + yield (row, 0), {((index, 1),): 1} poly_matrix = init_poly_matrix( terms=dict(gen_sorted_vector()), |