pyproximal.Box#
- class pyproximal.Box(lower: Union[float, ndarray[tuple[Any, ...], dtype[_ScalarT]]] = -inf, upper: Union[float, ndarray[tuple[Any, ...], dtype[_ScalarT]]] = inf)[source]#
Box proximal operator.
Proximal operator of a Box: \(\operatorname{Box}_{[l, u]} = \{ x: l \leq x\leq u \}\).
- Parameters
Notes
As the Box is an indicator function, the proximal operator corresponds to its orthogonal projection (see
pyproximal.projection.BoxProjfor details.Methods
__init__([lower, upper])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(**kwargs)proxdual(**kwargs)