summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Schneeberger <michael.schneeberger@fhnw.ch>2023-02-13 15:06:39 +0100
committerMichael Schneeberger <michael.schneeberger@fhnw.ch>2023-02-13 15:06:39 +0100
commitbb6e0746666c7d41a9c5eaac17e6d42920806247 (patch)
tree54ee0499ebc7b00e9f381a1cb590c2b1cd78f351
parentcorrect bug in to_sorted_variables operator (diff)
downloadpolymatrix-bb6e0746666c7d41a9c5eaac17e6d42920806247.tar.gz
polymatrix-bb6e0746666c7d41a9c5eaac17e6d42920806247.zip
correct another bug in to_sorted_variables operator
Diffstat (limited to '')
-rw-r--r--polymatrix/expression/mixins/tosortedvariablesmixin.py2
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()),