-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support member calls with xvalue bases in the reverse mode.
Currently, we assume that the base of a member call always has a clear memory location (that it can be referenced with a variable). This is true for lvalues, e.g. ``` obj1.mem_fn_1(i, j); // can be referenced with `obj/_d_obj` ``` However, not true for xvalues, e.g. ``` (obj1 + obj2).mem_fn_1(i, j); ``` In the latter case, we need to define an additional variable to store the derivative of ``obj1 + obj2``. Fixes #917
- Loading branch information
1 parent
c8ce282
commit 19104bd
Showing
2 changed files
with
91 additions
and
3 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