pyproximal.L0Ball#
- class pyproximal.L0Ball(radius: Union[int, Callable[[int], int]])[source]#
\(L_0\) ball proximal operator.
Proximal operator of the L0 ball: \(L0_{r} = \{ \mathbf{x}: ||\mathbf{x}||_0 \leq r \}\).
- Parameters
- radius
intorfunc, optional Radius. This can be a constant number or a function that is called passing a counter which keeps track of how many times the
proxmethod has been invoked before and returns a scalarradiusto be used.
- radius
Notes
As the L0 ball is an indicator function, the proximal operator corresponds to its orthogonal projection (see
pyproximal.projection.L0BallProjfor details.Methods
__init__(radius)affine_addition(v)Affine addition
chain(g)Chain
grad(x)Gradient of the Moreau envelope of the function.
postcomposition(sigma)Postcomposition
precomposition(a, b)Precomposition
prox(*args, **kwargs)proxdual(**kwargs)
Examples using pyproximal.L0Ball#
IHT, ISTA, FISTA, AA-ISTA, and TWIST for Compressive sensing