Skip to content

Non-smooth functions with gradient defined #153

Closed as not planned
Closed as not planned

Description

@hakkelt

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.

Activity

  1. lostella commented on Dec 6, 2025

    @lostella
    Member

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

  2. hakkelt commented on Dec 16, 2025

    @hakkelt
    ContributorAuthor

    Thanks, that was my guess, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions