Parth

Results 103 comments of Parth

> Also consteval is a C++20 feature and is implemented in clang-14 You can define `consteval` functions by enabling C++20 features in earlier clang versions (>=9) using `-std=c++2a` or `-std=c++20`...

> The following code snippet: > > ``` > consteval double fn2(double x, double y, double z){ > return x*y*z; > } > > int main(){ > auto fdx=clad::differentiate(fn2,"x"); >...

> The address operator is supposed be a non-differentiable operator right? Yes! Mathematically, the address-of operator is a non-differentiable operator. However, it does impact the primal function, and thus the...

> The code snippets shown here don't compile when I use clad(with clang) in debug mode. It throws the following error: Clang debug build contains various assertions for ensuring consistency...

@Nirhar > Can you give me some resources to understand the usecase of this class utils::StmtClone. I understand that it is used to make a copy of a certain portion...

I am not getting any error on running the code snippet 1, can you please paste the complete code that is giving you the error?

In the code snippet shown below, `f1` is a member function, the derivative function of a member function is a member function as well. To call a member function, we...

Hi Garima, I don't think there is any trivial fix for the problem described in this issue. The possible fix stated by you would not work for all cases. We...

> Couldn't we have this check as a Clad warning rather than using metaprogramming? Yes, we can. But if we are checking this, then we should issue an error instead...