nested AD issues? issue 278

17 views
Skip to first unread message

Sebastian Weber

unread,
Apr 6, 2016, 12:44:10 PM4/6/16
to stan development mailing list
Hi!

I think there is an issue with the nested AD stuff, i.e. the results from the jacobian function are wrong if no stan::math:var instance was initialized before calling the function.

Attached is a cpp file triggering the error and a comment showing how to fix it from the user side. The respective issue is here:

https://github.com/stan-dev/math/issues/278

... or I have used the set_zero_adjoints_nested() function wrongly... i.e. if that call is replaced with the set_zero_adjoints() function then things work as well.

Best,
Sebastian

jac_stuff.cpp
Reply all
Reply to author
Forward
0 new messages