EnzymeAD / Enzyme

High-performance automatic differentiation of LLVM and MLIR.
https://enzyme.mit.edu
Other
1.28k stars 108 forks source link

Outstanding nuances in the C++ sugar #2060

Open jandrej opened 2 months ago

jandrej commented 2 months ago

Const references are still not working. See failing test here https://fwd.gymni.ch/NyKzII

It would also be good to add the sugar includes to the installed files through cmake.

jandrej commented 2 months ago

If both function arguments are const you can workaround the issue with some evil casts https://fwd.gymni.ch/HTJOzZ