pystencils.codegen.Lambda

pystencils.codegen.Lambda#

class pystencils.codegen.Lambda(expr, params)#

A one-line function emitted by the code generator as an auxiliary object.

Parameters:
property parameters: tuple[Parameter, ...]#

Parameters to this lambda

property return_type: PsType#

Return type of this lambda

c_code()#

Print the C code of this lambda

Return type:

str