Skip to content
Snippets Groups Projects
Commit 19df0e98 authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Move code

parent d955bde1
No related branches found
No related tags found
No related merge requests found
......@@ -96,6 +96,10 @@ class SympyToCpp:
depth = 0
indent = " " * 4
def build(self):
for name, expr in self.function_results.items():
expr_to_cpp(expr, self)
def make_compute_args(self):
return ", ".join(f"double {arg}" for arg in self.function_args)
......@@ -222,10 +226,6 @@ class SympyToCpp:
def _line_sum(self, *args):
return sum(args, [])
def build(self):
for name, expr in self.function_results.items():
expr_to_cpp(expr, self)
def expr_to_cpp(
expr: sp.Basic,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment