Skip to content

Is auto differential module is suitable for the fortran-stdlib #895

Open
@dengbangjie

Description

@dengbangjie

Motivation

I am willing to contribute a basic differential programming module using an operator overloading approach (as opposed to a tape-based method). Differential modeling is quite interesting because it simultaneously provides the value of an object and its gradient. From my personal experience, this capability significantly reduces the time required for nonlinear optimization tasks. However, I am unsure whether this domain is appropriate for the Fortran-stdlib library. And, I am unsure whether the library prefers arbitrary-order differential objects [x_i, [dx_i/dx_j], ...] or just dual number calculus [x, dx].

Prior Art

No response

Additional Information

No response

Activity

added
ideaProposition of an idea and opening an issue to discuss it
on Nov 21, 2024
jalvesz

jalvesz commented on Dec 12, 2024

@jalvesz
Contributor

Hi,

This looks like a promising contribution. Do you have a stand-alone repo that showcases the contribution you wish to carry out? that would help the discussion. Some details about implementation, capabilities, limitations, performance would help to push the discussion.

ivan-pi

ivan-pi commented on Jan 6, 2025

@ivan-pi
Member

Duplicate of #531. @dengbangjie, you are very welcome to pick this up. I think a forward-mode operator-overloading based auto-diff would be fully in the scope of stdlib.

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

    ideaProposition of an idea and opening an issue to discuss it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Is auto differential module is suitable for the fortran-stdlib · Issue #895 · fortran-lang/stdlib