dense_entries_derivatives#

t3toolbox.backend.sampling_derivatives.dense_entries_derivatives(index, pp, T, order)#
def dense_entries_derivatives(
        index:  typ.Sequence[int],      # the grid point (one int per mode), len=d
        pp:     typ.Sequence[NDArray],  # perturbation vectors P, len=d, elm_shape=(Ni,)
        T:      NDArray,                # dense tensor, shape=(N0,...,N(d-1))
        order:  int,                    # highest derivative order
) -> NDArray:                           # entries-derivative jets, shape=(order+1,)

Exact dense symmetric entry derivatives (oracle): apply-derivatives with one-hot basis vectors e_{index} (entries = apply with one-hot), via dense_apply_derivatives(). Unstacked.

Parameters:
  • index (t3toolbox.backend.common.typ.Sequence[int])

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

  • T (NDArray)

  • order (int)

Return type:

NDArray