From b338d183b37d47dfa3a1f95fa7ab28b1fb341ca4 Mon Sep 17 00:00:00 2001 From: Martin Bauer <martin.bauer@fau.de> Date: Tue, 1 Oct 2019 15:28:55 +0200 Subject: [PATCH] Bugfix in assumptions of integer_functions --- pystencils/integer_functions.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pystencils/integer_functions.py b/pystencils/integer_functions.py index 1cd9b197a..c6fae4fbf 100644 --- a/pystencils/integer_functions.py +++ b/pystencils/integer_functions.py @@ -6,7 +6,7 @@ from pystencils.sympyextensions import is_integer_sequence class IntegerFunctionTwoArgsMixIn(sp.Function): - is_Integer = True + is_integer = True def __new__(cls, arg1, arg2): args = [] @@ -80,7 +80,7 @@ class modulo_floor(sp.Function): '(int64_t)((a) / (b)) * (b)' """ nargs = 2 - is_Integer = True + is_integer = True def __new__(cls, integer, divisor): if is_integer_sequence((integer, divisor)): @@ -112,7 +112,7 @@ class modulo_ceil(sp.Function): '((a) % (b) == 0 ? a : ((int64_t)((a) / (b))+1) * (b))' """ nargs = 2 - is_Integer = True + is_integer = True def __new__(cls, integer, divisor): if is_integer_sequence((integer, divisor)): @@ -142,7 +142,7 @@ class div_ceil(sp.Function): '( (a) % (b) == 0 ? (int64_t)(a) / (int64_t)(b) : ( (int64_t)(a) / (int64_t)(b) ) +1 )' """ nargs = 2 - is_Integer = True + is_integer = True def __new__(cls, integer, divisor): if is_integer_sequence((integer, divisor)): @@ -172,7 +172,7 @@ class div_floor(sp.Function): '((int64_t)(a) / (int64_t)(b))' """ nargs = 2 - is_Integer = True + is_integer = True def __new__(cls, integer, divisor): if is_integer_sequence((integer, divisor)): -- GitLab