def proximal(self):
        """Return the ``proximal factory`` of the functional.

        See Also
        --------
        odl.solvers.nonsmooth.proximal_operators.proximal_l1 :
            `proximal factory` for the L1-norm.
        """
        if self.pointwise_norm.exponent == 1:
            return proximal_l1(space=self.domain)
        elif self.pointwise_norm.exponent == 2:
            return proximal_l1_l2(space=self.domain)
        else:
            raise NotImplementedError('`proximal` only implemented for p = 1 '
                                      'or 2')
def proximal ( self ) : if self . pointwise_norm . exponent == 1 : return proximal_l1 ( space = self . domain ) elif self . pointwise_norm . exponent == 2 : return proximal_l1_l2 ( space = self . domain ) else : raise NotImplementedError ( '`proximal` only implemented for p = 1 ' 'or 2' )
Return the ``proximal factory`` of the functional.

        See Also
        --------
        odl.solvers.nonsmooth.proximal_operators.proximal_l1 :
            `proximal factory` for the L1-norm.