cr.sparse.opt.project_to_box

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

Projects a vector to the box (\(\ell_{\infty}\) ball) of a specified radius.