clad
clad copied to clipboard
Fixes incorrect derivative produced when array is passed to call expression inside a loop
Added support for passing by reference in a for loop. In VisitArraySubscriptExpr(), for loops , added condition to check if it has reference variable. Fixes issue #441 and #465
My understanding is that's probably not the fix we wanted as many tests seem to fail. I have asked @parth-07 to take a look but since that's inactive for quite some time we might just close it. @ShounakDas101 what do you think?
@vgvassilev If this process is incorrect then please close it. Recently I started working on both issues. Please let me know what are the errors generated by this PR. In github actions I have seen only 1 file with error and I believe the cause for that is initialisation of variable in the a different block (The block which has pullback function where it is used).
The issues that this pull request intended to fix are already fixed in the master.