compute_mu_jets#

t3toolbox.backend.sampling_derivatives.compute_mu_jets(tt_cores, xi_jets, order)#
def compute_mu_jets(
        tt_cores:   typ.Sequence[NDArray],  # len=d, elm_shape=C+(rLi,ni,rR(i+1))
        xi_jets:    typ.Sequence[NDArray],  # input jets,  len=d, elm_shape=(2,)+W+C+(ni,)
        order:      int,                    # highest derivative order (the input jets carry only orders 0, 1)
) -> typ.Tuple[NDArray, ...]:               # mu_jets. len=d, elm_shape=(order+1,)+W+C+(rLi,). mu_jets[i][t]=mu_{i-1}^(t)

Left derivative-pushthrough jets (fused banded recurrence).

mu_jets[i] is the left edge variable entering core i (mu_{i-1}), stacked over derivative orders. The affine input jet (xi nonzero only at orders s in {0,1}) collapses each binomial pushthrough to a two-term recurrence mu_i^(t) = mu^(t).G.xi^(0) + t * mu^(t-1).G.xi^(1) – no binomial tensor, no (order+1)^2 work. The two terms are folded into ONE contraction per core: stack [mu^(t), t * mu^(t-1)] on a jet-pair axis s and contract it together with the bond a against [G.xi^(0), G.xi^(1)] ('stWCa,sWCab->tWCb') – one larger GEMM for XLA to schedule. order is an argument because nothing else carries it (the input jets stop at order 1). The per-core step is _mu_jets_step().

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

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

  • order (int)

Return type:

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