t3_entries_derivatives#
- t3toolbox.backend.sampling_derivatives.t3_entries_derivatives(index, pp, x, order)#
def t3_entries_derivatives( index: NDArray, # int, shape=(d,)+W -- the grid points (one multi-index per W sample) pp: typ.Sequence[NDArray], # perturbation vectors P, len=d, elm_shape=W+(Ni,) x: typ.Tuple[ typ.Sequence[NDArray], # tucker_cores. len=d, elm_shape=C+(nUi,Ni) typ.Sequence[NDArray], # tt_cores. len=d, elm_shape=C+(rLi,nUi,rR(i+1)) ], # = TuckerTensorTrain.data order: int, # highest derivative order ) -> NDArray: # entries-derivative jets, shape=(order+1,)+W+C
Symmetric derivatives of an entry of a Tucker tensor train, in one repeated direction.
The
entriesanalog oft3_apply_derivatives()– apply-derivatives with the up-index frame jet from slicing Tucker-core fibers atindex(order 0) and contractingP(order 1). Returnsy^(t) = d^t/ds^t apply(X, e_{index} + s P)|_0fort=0..order: the Taylor data of the tensor’s multilinear extension at grid cornerindex, in directionP. Index0is the ordinary entryX[index]. Stacksorder + W + C. Verified vsdense_entries_derivatives().