code: def convex_conj(self):
          
          if self.scalar <= 0:
              raise ValueError('scaling with nonpositive values have no convex '
                               'conjugate. Current value: {}.'
                               ''.format(self.scalar))
  
          return self.scalar * self.functional.convex_conj * (1.0 / self.scalar)
docs: Convex conjugate functional of the scaled functional.
  
          ``Functional.__rmul__`` takes care of the case scalar = 0.