MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _interp_fit_rk

Function _interp_fit_rk

tensorflow/contrib/integrate/python/ops/odes.py:174–181  ·  view source on GitHub ↗

Fit an interpolating polynomial to the results of a Runge-Kutta step.

(y0, y1, k, dt, tableau=_DORMAND_PRINCE_TABLEAU)

Source from the content-addressed store, hash-verified

172
173
174def _interp_fit_rk(y0, y1, k, dt, tableau=_DORMAND_PRINCE_TABLEAU):
175 """Fit an interpolating polynomial to the results of a Runge-Kutta step."""
176 with ops.name_scope('interp_fit_rk'):
177 dt = math_ops.cast(dt, y0.dtype)
178 y_mid = y0 + _scaled_dot_product(dt, tableau.c_mid, k)
179 f0 = k[0]
180 f1 = k[-1]
181 return _interp_fit(y0, y1, y_mid, f0, f1, dt)
182
183
184def _interp_evaluate(coefficients, t0, t1, t):

Callers 1

Calls 4

_scaled_dot_productFunction · 0.85
_interp_fitFunction · 0.85
name_scopeMethod · 0.45
castMethod · 0.45

Tested by

no test coverage detected