compute_sigma_hat_tangent_jets#

t3toolbox.backend.sampling_derivatives.compute_sigma_hat_tangent_jets(right_tt_cores, right_tt_cores_dot, xi_jets, xi_jets_dot, sigma_hats)#
def compute_sigma_hat_tangent_jets(
        right_tt_cores:     typ.Sequence[NDArray],  # R.        len=d, elm_shape=C+(rRi,nDi,rR(i+1))
        right_tt_cores_dot: typ.Sequence[NDArray],  # R_dot.    len=d, elm_shape=K+C+(rRi,nDi,rR(i+1))
        xi_jets:            typ.Sequence[NDArray],  # len=d, elm_shape=(2,)+W+C+(nDi,)
        xi_jets_dot:        typ.Sequence[NDArray],  # len=d, elm_shape=(2,)+W+K+C+(nDi,)
        sigma_hats:         typ.Sequence[NDArray],  # = compute_sigma_hat_jets(R, xi, c). len=d, elm_shape=(order+1,)+W+C+(rR(i+1),)
) -> typ.Tuple[NDArray, ...]:                       # sigma_hats_dot. len=d, elm_shape=(order+1,)+W+K+C+(rR(i+1),)

The derivative of compute_sigma_hat_jets() along (R_dot, xi_dot), the residual jet c fixed.

The same right-to-left propagation-only sweep with the dotted sigma_hat as its carry. The seed c does not move, so the dotted sweep starts from zero; each step is the product rule of the GN step – the two-term reverse recurrence of the affine input jet against the dotted carry, plus the same recurrence of the undotted sigma_hat entering the core against d(R xi) = R_dot xi + R xi_dot (_sigma_hat_tangent_jets_step()). The undotted operands carry W + C (c has no K), the dotted W + K + C. Dense reference: the three-term dense binomial twin in the test helper (equal to ~1e-15).

Parameters:
  • right_tt_cores (t3toolbox.backend.common.typ.Sequence[NDArray])

  • right_tt_cores_dot (t3toolbox.backend.common.typ.Sequence[NDArray])

  • xi_jets (t3toolbox.backend.common.typ.Sequence[NDArray])

  • xi_jets_dot (t3toolbox.backend.common.typ.Sequence[NDArray])

  • sigma_hats (t3toolbox.backend.common.typ.Sequence[NDArray])

Return type:

t3toolbox.backend.common.typ.Tuple[NDArray, …]