Registered Member
|
I have the following code:
my_dot is templated so as to allow automatic differentiation via stan. So the substitution I'm most interested in is T=stan::math::var, with is essentially a pair of doubles with funky arithmetic. (My understanding of how backwards autodiff is implemented is fairly thin, so this might be wrong). My issue is that my_dot2 works perfectly with autodiff types, but my_dot won't compile.
Or if I change my_dot by swapping the order of arguments:
then I get
Your help would be much appreciated. Many thanks, krey |
Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]