ShounakDas101

Results 11 comments of ShounakDas101

Hello @parth-07, I ran the attached code and did not receive any errors. I tested the code using the "f_decls3" function (the example given in the issue) and the "f_add2"...

This is the output of test/Gradient/Gradients.C ![Screenshot from 2023-03-16 18-11-38](https://user-images.githubusercontent.com/108444232/225621151-4f1ffc2e-ea8c-4fc5-9804-0761067ffab0.png) As it can be seen the expected result and the my output result are same. I did not encounter the...

@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...

Hi @Daksh1603 How did you check your code? I tried running this code and a few variations #include "clad/Differentiator/Differentiator.h" #include int main() { //int a[1]; //a[0]=0; //maybe change a[0] =3...

@parth-07 In this pull request (PR), I have decided to remove 'goto statements' only if the 'return statement' is the direct child node of the 'Compound statement' that contains the...

Hi @parth-07 I have tried to solve issue #526. I believe the issue specifically only wants to remove redundant goto statements like this ... goto _label0; _label0: ... > For...

Upon using clad::differentiate() I did not find and goto statements(atleast for the function I have used). This leads me to conclude that the problem is a mostly applicable for reverse...

Now I have compiled the following code and ran the code as below to understand how the "goto... Label" redundant code is being generated. #include "/home/shounak/My_clad/inst/include/clad/Differentiator/Differentiator.h" #include #include "/home/shounak/My_clad/inst/include/clad/Differentiator/Array.h" #include...

@parth-07 STEP 1: In clad/include/clad/Differentiator/ReverseModeVisitor.h (changes in line number 34 as given below) class ReverseModeVisitor private: bool if_encounter = false; // this line added STEP 2: In ReverseModeVisitor.cpp ( Changes...