Skip to content

Forward AD for mod2pi() #113

Closed
Closed

Description

@papamarkou

Hi @jrevels, @mlubin, how easy would it be to implement forward AD for the mod2pi() function? @eford, a collaborator, would like to make use of such functionality. Would it be possible to help with this? If you are too busy to help with it, then perhaps even some guidelines would be valuable.

Activity

  1. jrevels commented on Mar 28, 2016

    @jrevels
    Member

    I think we also just need general mod as well. That was implemented in DualNumbers a while ago (ref JuliaDiff/DualNumbers.jl#25).

  2. papamarkou commented on Mar 28, 2016

    @papamarkou
    ContributorAuthor

    Thanks, @jrevels. I was reading the ForwardDiff documentation, according to which we would first need to open a PR in Calculus. I was wondering whether the Calculus prerequisite is covered for mod or its implementation in DualNumbers was independent, not implicating Calculus.

  3. devmotion commented on May 16, 2022

    @devmotion
    Member

    A rule for mod2pi was added to DiffRules, and hence also automatically to ForwardDiff, a while ago (JuliaDiff/DiffRules.jl#35):

    julia> using ForwardDiff
    
    julia> ForwardDiff.derivative(mod2pi, 1.0)
    1.0
  4. eford commented on May 17, 2022

    @eford

    Thanks

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