MeasurableElemwise.c_init_code_struct(node, name, sub)#

Return an Apply-specific code string to be inserted in the struct initialization code.

  • node (Apply) – The node in the graph being compiled.

  • name (str) – A unique name to distinguish variables from those of other nodes.

  • sub (dict of str) – A dictionary of values to substitute in the code. Most notably it contains a 'fail' entry that you should place in your code after setting a Python exception to indicate an error.

Return type