Skip to content

Commit c719ec5

Browse files
committed
integrate_ode_bdf tests mostly working now (Issue #1887)
1 parent 92314d0 commit c719ec5

File tree

5 files changed

+245
-165
lines changed

5 files changed

+245
-165
lines changed

stan/math/prim/fun/value_of.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ inline Vec value_of(Vec&& x) {
107107
template <typename EigMat, require_eigen_t<EigMat>* = nullptr,
108108
require_not_vt_double_or_int<EigMat>* = nullptr>
109109
inline auto value_of(const EigMat& M) {
110-
return M.unaryExpr([](const auto& scal) { return value_of(scal); });
110+
return M.unaryExpr([](const auto& scal) { return value_of(scal); }).eval();
111111
}
112112

113113
/**

0 commit comments

Comments
 (0)