diff options
author | Michael Schneeberger <michael.schneeberger@fhnw.ch> | 2023-03-29 13:49:38 +0200 |
---|---|---|
committer | Michael Schneeberger <michael.schneeberger@fhnw.ch> | 2023-03-29 13:49:38 +0200 |
commit | a1c4555aaaf18f810ec84667e2e9848ea6da930c (patch) | |
tree | b897f6fbd43324a4de8ae5ee1c596cb35a219f90 | |
parent | add half newton polytope operator (diff) | |
download | polymatrix-a1c4555aaaf18f810ec84667e2e9848ea6da930c.tar.gz polymatrix-a1c4555aaaf18f810ec84667e2e9848ea6da930c.zip |
bugfix in divison operator
-rw-r--r-- | polymatrix/expression/mixins/divisionexprmixin.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/polymatrix/expression/mixins/divisionexprmixin.py b/polymatrix/expression/mixins/divisionexprmixin.py index d84c09a..94bfec1 100644 --- a/polymatrix/expression/mixins/divisionexprmixin.py +++ b/polymatrix/expression/mixins/divisionexprmixin.py @@ -48,13 +48,13 @@ class DivisionExprMixin(ExpressionBaseMixin): def gen_monomial_terms(): for monomial, value in underlying_terms.items(): - yield monomial + (division_variable,), value + yield monomial + ((division_variable, 1),), value terms[row, col] = dict(gen_monomial_terms()) def gen_auxillary_terms(): for monomial, value in right.get_poly(0, 0).items(): - yield monomial + (division_variable,), value + yield monomial + ((division_variable, 1),), value auxillary_terms = dict(gen_auxillary_terms()) |