Skip to content
Snippets Groups Projects
Commit bf7a668c authored by Markus Holzer's avatar Markus Holzer
Browse files

test

parent 502d9e5c
Branches
Tags release/1.1.1
No related merge requests found
Pipeline #30507 failed
...@@ -641,7 +641,6 @@ class VectorizedCustomSympyPrinter(CustomSympyPrinter): ...@@ -641,7 +641,6 @@ class VectorizedCustomSympyPrinter(CustomSympyPrinter):
else: else:
func = self.instruction_set['+'] func = self.instruction_set['+']
return func.format(visit(summands[:elements]), visit(summands[elements:])) return func.format(visit(summands[:elements]), visit(summands[elements:]))
try: try:
result = self._scalarFallback('_print_Add', expr) result = self._scalarFallback('_print_Add', expr)
except Exception: except Exception:
...@@ -678,15 +677,9 @@ class VectorizedCustomSympyPrinter(CustomSympyPrinter): ...@@ -678,15 +677,9 @@ class VectorizedCustomSympyPrinter(CustomSympyPrinter):
assert len(summands) >= 2 assert len(summands) >= 2
processed = summands[0].term processed = summands[0].term
for summand in summands[1:]: for summand in summands[1:]:
func = self.instruction_set['-'] if summand.sign == -1 else self.instruction_set['+'] func = self.instruction_set['-' + suffix] if summand.sign == -1 else self.instruction_set['+' + suffix]
processed = func.format(processed, summand.term) processed = func.format(processed, summand.term)
if len(summands) < 10: return processed
processed = summands[0].term
for summand in summands[1:]:
func = self.instruction_set['-'] if summand.sign == -1 else self.instruction_set['+']
processed = func.format(processed, summand.term)
else:
processed = visit(summands)
def _print_Pow(self, expr): def _print_Pow(self, expr):
result = self._scalarFallback('_print_Pow', expr) result = self._scalarFallback('_print_Pow', expr)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment