cr.sparse.opt.project_to_ball

cr.sparse.opt.project_to_ball(x, radius=1.0)[source]

Projects a vector to the \(\ell_2\) ball of a specified radius.