MCPcopy Create free account
hub / github.com/casadi/casadi / __init__

Method __init__

test/python/threads.py:272–279  ·  view source on GitHub ↗
(self,nx, ng, np)

Source from the content-addressed store, hash-verified

270
271 class IterationCallback(ca.Callback):
272 def __init__(self,nx, ng, np):
273 ca.Callback.__init__(self)
274 self.foo = []
275
276 self.nx = nx
277 self.ng = ng
278 self.np = np
279 self.construct("mycallback", {})
280
281 def get_n_in(self): return nlpsol_n_out()
282 def get_n_out(self): return 1

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45
constructMethod · 0.45

Tested by

no test coverage detected