We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 681fa17 + 620158b commit 3595599Copy full SHA for 3595599
1 file changed
stan/math/rev/fun/value_of_rec.hpp
@@ -14,7 +14,7 @@ namespace math {
14
* @return Value of variable.
15
*/
16
template <typename T>
17
-inline auto value_of_rec(const var_value<T>& v) {
+inline auto& value_of_rec(const var_value<T>& v) {
18
return v.vi_->val_;
19
}
20
0 commit comments