assemble_tt_tangent_variation_jets ================================== .. py:function:: t3toolbox.backend.sampling_derivatives.assemble_tt_tangent_variation_jets(sigma_tildes, sigma_tildes_dot, tau_tildes, tau_tildes_dot, deta_tildes, deta_tildes_dot, xi_jets, xi_jets_dot, mu_jets, mu_jets_dot, nu_jets, nu_jets_dot, n_probe, chunk_size = DEFAULT_CHUNK_SIZE) .. code-block:: python def assemble_tt_tangent_variation_jets( sigma_tildes: typ.Sequence[NDArray], # len=d, elm_shape=(order+1,)+W+C+(rR(i+1),) sigma_tildes_dot: typ.Sequence[NDArray], # len=d, elm_shape=(order+1,)+W+K+C+(rR(i+1),) tau_tildes: typ.Sequence[NDArray], # len=d, elm_shape=(order+1,)+W+C+(rLi,) tau_tildes_dot: typ.Sequence[NDArray], # len=d, elm_shape=(order+1,)+W+K+C+(rLi,) deta_tildes: typ.Sequence[NDArray], # len=d, elm_shape=(order+1,)+W+C+(ni,) deta_tildes_dot: typ.Sequence[NDArray], # len=d, elm_shape=(order+1,)+W+K+C+(ni,) xi_jets: typ.Sequence[NDArray], # len=d, elm_shape=(2,)+W+C+(ni,) xi_jets_dot: typ.Sequence[NDArray], # len=d, elm_shape=(2,)+W+K+C+(ni,) mu_jets: typ.Sequence[NDArray], # len=d, elm_shape=(order+1,)+W+C+(rLi,) mu_jets_dot: typ.Sequence[NDArray], # len=d, elm_shape=(order+1,)+W+K+C+(rLi,) nu_jets: typ.Sequence[NDArray], # len=d, elm_shape=(order+1,)+W+C+(rR(i+1),) nu_jets_dot: typ.Sequence[NDArray], # len=d, elm_shape=(order+1,)+W+K+C+(rR(i+1),) n_probe: int, # len(W) chunk_size: typ.Optional[int] = DEFAULT_CHUNK_SIZE, # W-chunk size; None (or >= W) -> dense ) -> typ.Tuple[NDArray, ...]: # dG. len=d, elm_shape=K+C+(rLi,ni,rR(i+1)) (W summed) The derivative of the TT variation-gradient assembly (W summed), factored by the product rule. The GN assembly (:py:func:`assemble_tt_variation_jets`) sums three trilinear outer products; differentiating each factor gives nine terms. Here each group's undotted pair and its dotted twin are formed once and met by the remaining factor: the sigma~ / tau~ groups as banded pairs (both meet ``xi``, so they share their two finals), the deta~ group as an order scan over the lag; see :py:func:`_tt_tangent_variation_jets_step`. Equal to the nine-term dense form to ~1e-15. W-chunked exactly as the GN assembly (on the uniform path -- a ``lax.scan`` on jax, an eager loop on numpy; ragged, ``None`` and ``W <= chunk_size`` run unchunked); see :doc:`/chunking`.