check_perturbation_vectors#
- t3toolbox.backend.sampling_derivatives.check_perturbation_vectors(ww, pp)#
def check_perturbation_vectors( ww: typ.Sequence[NDArray], # points X, len=d, elm_shape=W+(Ni,) pp: typ.Sequence[NDArray], # perturbation P, len=d, elm_shape=W+(Ni,) ) -> None:
Structural check (hard error): the perturbation
P(pp) shares the sample stackWand mode dims of the pointsX(ww) – each sample pairs a point with a direction. Used by the derivative-probe/apply frontends; shapes are static, so this is jit-safe.