Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

value_of metaprogram #1232

Closed
rtrangucci opened this issue Jan 21, 2015 · 0 comments
Closed

value_of metaprogram #1232

rtrangucci opened this issue Jan 21, 2015 · 0 comments
Milestone

Comments

@rtrangucci
Copy link
Contributor

src/stan/agrad/fwd/functions/value_of.hpp definition:

template<typename T>
inline T value_of(const fvar<T>& v) {
  return v.val_;
}

should be updated to handle arbitrarily nested fvars for higher-order autodiff.

It may need to be another function if we're assuming value_of returns type T in some fvar<T> cases.

@syclik syclik closed this as completed in f556ea8 Feb 3, 2015
@syclik syclik modified the milestone: v2.6.0++ Feb 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants