forked from vgvassilev/clad
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable differentiation wrt data members of parameters in forw mode
This PR adds initial support for differentiation with respect to data members in Forward Mode AD. Functions can be differentiated with respect to a data member by specifying the data member in the differentiation args. For example: ```cpp double fn(std::pair<double, double> u, std::pair<double, double> v) { return u.first + v.second; } auto d_fn = clad::differentiate(fn, "u.first"); ``` This PR does not add support for differentiating with respect to array data members.
- Loading branch information
1 parent
e6ee2ae
commit a2ed7f2
Showing
12 changed files
with
396 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.