CCodePrinter.doprint

CCodePrinter.doprint(expr, assign_to=None)

Print the expression as code.

Parameters

exprExpression

The expression to be printed.

assign_toSymbol, string, MatrixSymbol, list of strings or Symbols (optional)

If provided, the printed code will set the expression to a variable or multiple variables with the name or names given in assign_to.