MCPcopy Create free account
hub / github.com/rtqichen/torchdiffeq / get_initial_state

Method get_initial_state

examples/bouncing_ball.py:36–38  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

34 return pos - torch.exp(log_radius)
35
36 def get_initial_state(self):
37 state = (self.init_pos, self.init_vel, self.log_radius)
38 return self.t0, state
39
40 def state_update(self, state):
41 """Updates state based on an event (collision)."""

Callers 2

get_collision_timesMethod · 0.95
simulateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected