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 corei(mu_{i-1}), stacked over derivative orders. The affine input jet (xinonzero only at orderss in {0,1}) collapses each binomial pushthrough to a two-term recurrencemu_i^(t) = mu^(t).G.xi^(0) + t * mu^(t-1).G.xi^(1)– no binomial tensor, no(order+1)^2work. The two terms are folded into ONE contraction per core: stack[mu^(t), t * mu^(t-1)]on a jet-pair axissand contract it together with the bondaagainst[G.xi^(0), G.xi^(1)]('stWCa,sWCab->tWCb') – one larger GEMM for XLA to schedule.orderis an argument because nothing else carries it (the input jets stop at order 1). The per-core step is_mu_jets_step().