diff options
author | Michael Schneeberger <michael.schneeberger@fhnw.ch> | 2023-02-13 15:06:39 +0100 |
---|---|---|
committer | Michael Schneeberger <michael.schneeberger@fhnw.ch> | 2023-02-13 15:06:39 +0100 |
commit | bb6e0746666c7d41a9c5eaac17e6d42920806247 (patch) | |
tree | 54ee0499ebc7b00e9f381a1cb590c2b1cd78f351 | |
parent | correct bug in to_sorted_variables operator (diff) | |
download | polymatrix-bb6e0746666c7d41a9c5eaac17e6d42920806247.tar.gz polymatrix-bb6e0746666c7d41a9c5eaac17e6d42920806247.zip |
correct another bug in to_sorted_variables operator
-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()), |