Skip to content

Goal: automatic differentiation of compiled functions #2589

Backlog

Description

@Rafael-SOWNet

Automatic differentiation of a compiled function: the derivative's value at a point, computed with the function, without building the symbolic derivative.

Differentiate is symbolic and its result can be far larger than the function (a product of n factors gives n terms). Forward mode (dual numbers) and reverse mode (a tape) give the gradient at the cost of a few evaluations, which is what optimisation and machine learning use.

  • Compile to a delegate returning the value and the gradient.
  • Agreement with the compiled symbolic derivative at sample points, as compilecheck does for values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions