tv_entries_transpose#
- t3toolbox.backend.entries.tv_entries_transpose(c, index, frame, sum_over_probes=False)#
def tv_entries_transpose( c: NDArray, # residual, shape = W + C index: NDArray, # int, shape=(d,)+W (the indices whose entries c weights) frame: typ.Tuple[typ.Sequence[NDArray], typ.Sequence[NDArray], typ.Sequence[NDArray], typ.Sequence[NDArray]], # (up, down, left, right) sum_over_probes: bool = False, ) -> typ.Tuple[typ.Sequence[NDArray], typ.Sequence[NDArray]]: # (dU_tildes, dG_tildes)
Apply the transpose of
tv_entries()– scatter a residualcatindexinto a tangent.Identical to
tv_apply_transpose()with the up-indexxi-hatfrom fiber slicing and the apply vectors replaced by the unit vectorse_{index_k}(so thedU-tildeouter product is the entry scatter).See also
tv_entries,tv_apply_transpose