ProximalOperators.jl icon indicating copy to clipboard operation
ProximalOperators.jl copied to clipboard

Non-smooth functions with gradient defined

Open hakkelt opened this issue 1 month ago • 1 comments

While making changes for #152 , I realized that there are functions that have gradient! implemented, but neither is_smooth nor is_locally_smooth is true for them. Why is that? Wouldn't they need a property function that signals that they have gradients defined for a part of their domain?

  • DistL2
  • ElasticNet
  • NormL2
  • NormLinf
  • SumPositive

I ask this out of curiosity, not because I really need such functionality.

hakkelt avatar Nov 27 '25 20:11 hakkelt

I guess that’s the result of overloading “gradient” with “an element of the subdifferential” really. Something one could re-think, of course.

lostella avatar Dec 06 '25 08:12 lostella

Thanks, that was my guess, too.

hakkelt avatar Dec 16 '25 16:12 hakkelt