LabviewPrinter¶
- class chaste_codegen.LabviewPrinter(symbol_function=None, derivative_function=None, lookup_table_function=<function ChastePrinter.<lambda>>)[source]¶
Bases:
ChastePrinterConverts Sympy expressions to strings for use in Chaste code generation.
To use, create a
ChastePrinterinstance, and call its methoddoprint()with a Sympy expression argument.Arguments:
symbol_functionA function that converts symbols to strings (variable names).
derivative_functionA function that converts derivatives to strings.
lookup_table_functionA function that prints lookup table expressions or returns None if the expression is not in the lookup table.