ut3_entries_corewise_derivatives_hessian#

t3toolbox.backend.ut3_sampling.ut3_entries_corewise_derivatives_hessian(c, index, pp, data, core_directions, order)#
def ut3_entries_corewise_derivatives_hessian(
        c:                NDArray,                       # residual jet (omega^2 applied), shape=(order+1,)+W+C
        index:            NDArray,                       # int, shape=(d,)+W

        pp:               typ.Union[typ.Sequence[NDArray], NDArray],  # perturbation vectors P, len=d, elm_shape=W+(Ni,); or packed

        data:             UT3Data,                       # the point theta, stack C
        core_directions:  typ.Tuple[NDArray, NDArray],   # bare raw direction supercores theta_hat, (d,)+K+C+(...)
        order:            int,                           # highest derivative order
) -> typ.Tuple[NDArray, NDArray]:                        # (Tucker, TT) blocks of K theta_hat, (d,)+K+C+(...), W summed

The uniform twin of t3_entries_corewise_derivatives_hessian() (index unpacked – the one-hot vectors are built packed inside the kernel; pp packed), as ut3_apply_corewise_derivatives_hessian().

Parameters:
  • c (NDArray)

  • index (NDArray)

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

  • data (UT3Data)

  • core_directions (t3toolbox.backend.common.typ.Tuple[NDArray, NDArray])

  • order (int)

Return type:

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