Skip to content
Snippets Groups Projects
Commit d3fce803 authored by Martin Bauer's avatar Martin Bauer
Browse files

Merge branch 'fix-llvm-gpu' into 'master'

Fix printing for Functions without name

See merge request !103
parents 296de5db 107a3ac8
Branches
Tags
No related merge requests found
......@@ -390,8 +390,9 @@ class CustomSympyPrinter(CCodePrinter):
elif expr.func == int_div:
return "((%s) / (%s))" % (self._print(expr.args[0]), self._print(expr.args[1]))
else:
name = expr.name if hasattr(expr, 'name') else expr.__class__.__name__
arg_str = ', '.join(self._print(a) for a in expr.args)
return f'{expr.name}({arg_str})'
return f'{name}({arg_str})'
def _typed_number(self, number, dtype):
res = self._print(number)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment