assemble_tt_tangent_variations#

t3toolbox.backend.probing.assemble_tt_tangent_variations(sigma_tildes, sigma_tildes_dot, tau_tildes, tau_tildes_dot, deta_tildes, deta_tildes_dot, xis, xis_dot, mus, mus_dot, nus, nus_dot, n_probe)#
def assemble_tt_tangent_variations(
        sigma_tildes:       typ.Union[typ.Sequence[NDArray], NDArray],  # len=d, elm_shape=W+C+(rR(i+1),)
        sigma_tildes_dot:   typ.Union[typ.Sequence[NDArray], NDArray],  # len=d, elm_shape=W+K+C+(rR(i+1),)
        tau_tildes:         typ.Union[typ.Sequence[NDArray], NDArray],  # len=d, elm_shape=W+C+(rLi,)
        tau_tildes_dot:     typ.Union[typ.Sequence[NDArray], NDArray],  # len=d, elm_shape=W+K+C+(rLi,)
        deta_tildes:        typ.Union[typ.Sequence[NDArray], NDArray],  # len=d, elm_shape=W+C+(ni,)
        deta_tildes_dot:    typ.Union[typ.Sequence[NDArray], NDArray],  # len=d, elm_shape=W+K+C+(ni,)
        xis:                typ.Union[typ.Sequence[NDArray], NDArray],  # len=d, elm_shape=W+C+(ni,)
        xis_dot:            typ.Union[typ.Sequence[NDArray], NDArray],  # len=d, elm_shape=W+K+C+(ni,)
        mus:                typ.Union[typ.Sequence[NDArray], NDArray],  # len=d, elm_shape=W+C+(rLi,)
        mus_dot:            typ.Union[typ.Sequence[NDArray], NDArray],  # len=d, elm_shape=W+K+C+(rLi,)
        nus:                typ.Union[typ.Sequence[NDArray], NDArray],  # len=d, elm_shape=W+C+(rR(i+1),)
        nus_dot:            typ.Union[typ.Sequence[NDArray], NDArray],  # len=d, elm_shape=W+K+C+(rR(i+1),)
        n_probe:            int,                                        # len(W): no operand here is W-only
) -> typ.Union[typ.Sequence[NDArray], NDArray]:  # dG. len=d, elm_shape=K+C+(rLi,ni,rR(i+1)) (W summed)

The derivative of assemble_tt_variations() (sum_over_probes=True), factored by the product rule: the three trilinear outer products group as mu . (xi (x) sigma~ + deta~ (x) nu) + tau~ . (xi (x) nu), each pair intermediate and its dotted twin formed once and met by the remaining factor – four W-summed finals instead of the nine-term product rule’s nine, equal to it to rounding (the test suite pins it against the nine-term form).

Parameters:
  • sigma_tildes (t3toolbox.backend.common.typ.Union[t3toolbox.backend.common.typ.Sequence[NDArray], NDArray])

  • sigma_tildes_dot (t3toolbox.backend.common.typ.Union[t3toolbox.backend.common.typ.Sequence[NDArray], NDArray])

  • tau_tildes (t3toolbox.backend.common.typ.Union[t3toolbox.backend.common.typ.Sequence[NDArray], NDArray])

  • tau_tildes_dot (t3toolbox.backend.common.typ.Union[t3toolbox.backend.common.typ.Sequence[NDArray], NDArray])

  • deta_tildes (t3toolbox.backend.common.typ.Union[t3toolbox.backend.common.typ.Sequence[NDArray], NDArray])

  • deta_tildes_dot (t3toolbox.backend.common.typ.Union[t3toolbox.backend.common.typ.Sequence[NDArray], NDArray])

  • xis (t3toolbox.backend.common.typ.Union[t3toolbox.backend.common.typ.Sequence[NDArray], NDArray])

  • xis_dot (t3toolbox.backend.common.typ.Union[t3toolbox.backend.common.typ.Sequence[NDArray], NDArray])

  • mus (t3toolbox.backend.common.typ.Union[t3toolbox.backend.common.typ.Sequence[NDArray], NDArray])

  • mus_dot (t3toolbox.backend.common.typ.Union[t3toolbox.backend.common.typ.Sequence[NDArray], NDArray])

  • nus (t3toolbox.backend.common.typ.Union[t3toolbox.backend.common.typ.Sequence[NDArray], NDArray])

  • nus_dot (t3toolbox.backend.common.typ.Union[t3toolbox.backend.common.typ.Sequence[NDArray], NDArray])

  • n_probe (int)

Return type:

t3toolbox.backend.common.typ.Union[t3toolbox.backend.common.typ.Sequence[NDArray], NDArray]