Replies: 2 comments
-
I see now that dual is only used for froward mode and var is for the backward mode. |
Beta Was this translation helpful? Give feedback.
-
1.Can I do std::vector to provide a variable length input to a function? 2.what's differences between dual, real and var? In fact, many times the two can be interchangeable, but as the author mentioned, it is recommended to use them according to the above guidelines because the author has optimized the underlying code for these two different task requirements. The above is my personal shallow understanding. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
And when to use which? Can I do std::vector to provide a variable length input to a function?
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions