t3_entries_ambient_transpose#
- t3toolbox.backend.entries.t3_entries_ambient_transpose(c, index, shape, sum_over_probes=False)#
def t3_entries_ambient_transpose( c: NDArray, # residual, shape=W+C index: NDArray, # int, shape=(d,)+W shape: typ.Sequence[int], # ambient dims (N0,...,N(d-1)) -- to size the one-hots sum_over_probes: bool = False, # True: W becomes the CP rank (scatter-adds collisions) ) -> typ.Sequence[NDArray]: # canonical (CP) factors. len=d, ith elm_shape=stack_shape+(R, Ni)
Ambient transpose of
t3_entries(): scattercatindexinto CP factors.The
entriescounterpart oft3_apply_ambient_transpose()– identical with the apply vectors replaced by the unit vectorse_{index_k}, so the CP factors are one-hots and the back-projection isc * e_{idx_0} (x) ... (x) e_{idx_{d-1}}.sum_over_probes=TruemakesWthe CP rank (scatter-adding colliding indices – theJ^T rfor entry sampling).shapesupplies the ambient dims, which (unlike the apply case, wherewwcarries them) the residual and index alone do not determine. Returns CP factors (see the apply version).