ut3_apply_corewise_derivatives_transpose#

t3toolbox.backend.ut3_sampling.ut3_apply_corewise_derivatives_transpose(c, ww, pp, data, order, sum_over_probes=False)#
def ut3_apply_corewise_derivatives_transpose(
        c:     NDArray,                # residual jet (scalar), shape=(order+1,)+W+K+C
        ww:    typ.Sequence[NDArray],  # apply vectors,          len=d, ith elm_shape=W+(Ni,)
        pp:    typ.Sequence[NDArray],  # perturbation vectors P, len=d, ith elm_shape=W+(Ni,)
        data:  UT3Data,
        order: int,                    # highest derivative order
        sum_over_probes: bool = False,
) -> typ.Tuple[NDArray, NDArray]:     # (tucker-core grad supercore, tt-core grad supercore)

Corewise transpose of ut3_apply_derivatives(): gradient w.r.t. the frame supercores. ww/pp packed to N.

Parameters:
  • c (NDArray)

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

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

  • data (UT3Data)

  • order (int)

  • sum_over_probes (bool)

Return type:

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