Interpolate through the next time point, integrating as necessary.
(solution, history, rk_state, i)
| 375 | return rk_state, history, n_steps + 1 |
| 376 | |
| 377 | def interpolate(solution, history, rk_state, i): |
| 378 | """Interpolate through the next time point, integrating as necessary.""" |
| 379 | with ops.name_scope('interpolate'): |
| 380 | rk_state, history, _ = control_flow_ops.while_loop( |
| 381 | lambda rk_state, *_: t[i] > rk_state.t1, |
| 382 | adaptive_runge_kutta_step, (rk_state, history, 0), |
| 383 | name='integrate_loop') |
| 384 | y = _interp_evaluate(rk_state.interp_coeff, rk_state.t0, rk_state.t1, |
| 385 | t[i]) |
| 386 | solution = solution.write(i, y) |
| 387 | return solution, history, rk_state, i + 1 |
| 388 | |
| 389 | with _assert_increasing(t): |
| 390 | num_times = array_ops.size(t) |
nothing calls this directly
no test coverage detected