This example looks at the Callback class
View output (PDF) | source (python)
- See also
Callback function functionality.
35 def __init__(self, name, opts={}):
36 Callback.__init__(self)
37 self.construct(name, opts)
39 def get_n_in(self):
return 1
40 def get_n_out(self):
return 1
45 for i
in range(int(x)):
62 f = Function(
'f', [x],[y])