Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple indices in clad::gradient calls #1029

Merged
merged 1 commit into from
Aug 5, 2024

Commits on Aug 5, 2024

  1. Support multiple indices in clad::gradient calls.

    Currently, the user can provide a string as the second argument of ``clad::gradient`` to specify independent parameters as a list of comma-separated names. This commit allows users to specify indices alongside with names. e.g.
    ```
    clad::gradient(fn, "0");
    clad::gradient(fn, "1, z");
    ...
    ```
    Previously, it was possible to provide a single index as an integer literal. e.g.
    ```
    clad::gradient(fn, 0);
    ```
    Fixes vgvassilev#46.
    PetroZarytskyi committed Aug 5, 2024
    Configuration menu
    Copy the full SHA
    0f4fae0 View commit details
    Browse the repository at this point in the history