pyproximal.utils.moreau.moreauยถ
- pyproximal.utils.moreau.moreau(prox: ProxOperator, x: ndarray[tuple[Any, ...], dtype[_ScalarT]], tau: float, tol: float = 1e-05, raiseerror: bool = True, verb: bool = False) bool[source]ยถ
Moreau Identity.
The Moreau identity defines a relation between the vector \(\mathbf{u}\), its proximal operator and its dual proximal operator and can be used to estimate one of the two operators given the knowledge of the other.
- Parameters:
- prox
pyproximal.ProxOperator Proximal operator
- x
numpy.ndarray Vector
- tau
float Positive scalar weight
- tol
float, optional Moreau identity tolerance
- raiseerror
bool, optional Raise error or simply return
Falsewhen Moreau identity is not satisfied- verb
bool, optional Verbosity
- prox
Notes
The Moreau decomposition (or identity) is defined as:
\[\mathbf{x} = \prox_{\tau f} (\mathbf{x}) + \tau \prox_{\frac{1}{\tau} f^*} (\frac{\mathbf{x}}{\tau})\]This routine is used to evaluate if the prox and dualprox implementations of a
pyproximal.ProxOperatorsatisfy such identity.