cr.sparse.opt.shrink

cr.sparse.opt.shrink(a, kappa)[source]

Shrinks each entry of a vector by \(\kappa\).

Entries with magnitude below \(\kappa\) go to 0. The magnitude of other entries is reduced by \(\kappa\).