tv_entries_derivatives#

t3toolbox.backend.sampling_derivatives.tv_entries_derivatives(index, pp, variation, frame, order)#
def tv_entries_derivatives(
        index:      NDArray,                # int, shape=(d,)+W -- the grid points
        pp:         typ.Sequence[NDArray],  # perturbation vectors P, len=d, elm_shape=W+(Ni,)
        variation:  typ.Tuple[
            typ.Sequence[NDArray],          # var_tucker_cores V.  len=d, elm_shape=K+C+(nUi,Ni)
            typ.Sequence[NDArray],          # var_tt_cores     H.  len=d, elm_shape=K+C+(rLi,nDi,rR(i+1))
        ],                                  # = T3Variations.data
        frame:      typ.Tuple[
            typ.Sequence[NDArray],          # down_tucker_cores  D. len=d
            typ.Sequence[NDArray],          # up_tt_cores        U. len=d
            typ.Sequence[NDArray],          # left_tt_cores      L. len=d
            typ.Sequence[NDArray],          # right_tt_cores     R. len=d
        ],                                  # = T3Frame.data = (down, up, left, right) = (D, U, L, R)
        order:      int,                    # highest derivative order
) -> NDArray:                               # entries-derivative jets, shape=(order+1,)+W+K+C

Symmetric derivatives of an entry of a tangent vector, in one repeated direction.

The entries analog of tv_apply_derivatives() – identical but with the frame/var upward jets from slicing Tucker-core fibers at index (order 0) + contracting P (order 1). Stacks order + W + K + C. Verified vs dense_entries_derivatives() on the densified tangent.

See also

t3_entries_derivatives, tv_apply_derivatives, entries.tv_entries

Parameters:
  • index (NDArray)

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

  • variation (t3toolbox.backend.common.typ.Tuple[t3toolbox.backend.common.typ.Sequence[NDArray], 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)

Return type:

NDArray