ut3_apply_corewise_hessian#

t3toolbox.backend.ut3_sampling.ut3_apply_corewise_hessian(c, ww, data, core_directions)#
def ut3_apply_corewise_hessian(
        c:                NDArray,                       # residual (omega^2 applied), shape=W+C

        ww:               typ.Union[typ.Sequence[NDArray], NDArray],  # apply vectors, 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+(...)
) -> typ.Tuple[NDArray, NDArray]:                        # (Tucker, TT) blocks of K theta_hat, (d,)+K+C+(...), W summed

The uniform twin of t3_apply_corewise_hessian() (theta and theta_hat masked with theta’s masks, ww packed, the output re-masked), as ut3_probe_corewise_hessian().

Parameters:
  • c (NDArray)

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

  • data (UT3Data)

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

Return type:

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