pyproximal.HalfSpaceยถ
- class pyproximal.HalfSpace(w: ndarray[tuple[Any, ...], dtype[_ScalarT]], b: float)[source]ยถ
Half space proximal operator.
Proximal operator of the half space: \(\operatorname{H}_{[w, b]} = \{ \mathbf{x}: \mathbf{w}^T \mathbf{x} \leq b \}\).
- Parameters:
- w
numpy.ndarray Coefficients of the half space
- b
float bias of the half space
- w
Notes
As the half space is an indicator function, the proximal operator corresponds to its orthogonal projection (see
pyproximal.projection.HalfSpaceProjfor details.Methods
__init__(w, b)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)