tv_entries_derivatives_transpose#
- t3toolbox.backend.sampling_derivatives.tv_entries_derivatives_transpose(c, index, pp, frame, order, sum_over_probes=False)#
def tv_entries_derivatives_transpose( c: NDArray, # residual jet (scalar), shape=(order+1)+W+K+C index: NDArray, # int, shape=(d,)+W -- the grid points pp: typ.Sequence[NDArray], # perturbation vectors P, len=d, elm_shape=W+(Ni,) frame: typ.Tuple[ typ.Sequence[NDArray], typ.Sequence[NDArray], typ.Sequence[NDArray], typ.Sequence[NDArray], ], # = T3Frame.data = (U, O, P, Q) order: int, # highest derivative order sum_over_probes: bool = False, # True: sum the sample stack W (the J^T r back-projection) ) -> typ.Tuple[ typ.Tuple[NDArray, ...], # dU_tildes typ.Tuple[NDArray, ...], # dG_tildes ]: # = T3Variations.data
Transpose of
tv_entries_derivatives(): scatter residual jetscatindexinto a variation gradient. Identical totv_apply_derivatives_transpose()with the frame up-index jet from fiber slicing atindex(order 0) + contractingP(order 1), and the ambientw_jetfrom the unit vectorse_{index}(order 0) +P(order 1) – so the Tucker-variation gradient scatters onto the indexed rows.- Parameters:
c (NDArray)
index (NDArray)
pp (t3toolbox.backend.common.typ.Sequence[NDArray])
frame (t3toolbox.backend.common.typ.Tuple[t3toolbox.backend.common.typ.Sequence[NDArray], t3toolbox.backend.common.typ.Sequence[NDArray], t3toolbox.backend.common.typ.Sequence[NDArray], t3toolbox.backend.common.typ.Sequence[NDArray]])
order (int)
sum_over_probes (bool)
- Return type:
t3toolbox.backend.common.typ.Tuple[t3toolbox.backend.common.typ.Tuple[NDArray, Ellipsis], t3toolbox.backend.common.typ.Tuple[NDArray, Ellipsis]]