Skip to content

Commit 4f53279

Browse files
committed
Fix opencl headers
1 parent d7edcbd commit 4f53279

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

stan/math/rev/fun/inv_Phi.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#include <stan/math/rev/meta.hpp>
55
#include <stan/math/rev/core.hpp>
6+
#include <stan/math/prim/fun/exp.hpp>
67
#include <stan/math/prim/fun/inv_Phi.hpp>
78
#include <stan/math/prim/prob/std_normal_lpdf.hpp>
89
#include <stan/math/prim/functor/apply_scalar_binary.hpp>
@@ -38,7 +39,7 @@ inline auto inv_Phi(const T& p) {
3839
const auto& arena_rtn = to_arena(inv_Phi(p.val()));
3940
return make_callback_var(arena_rtn, [p, arena_rtn](auto& vi) mutable {
4041
p.adj() += apply_scalar_binary(
41-
vi.adj(), arena_rtn.val(), [](const auto& adj, const auto& rtn_val) {
42+
vi.adj(), arena_rtn.val(), [](const double adj, const double rtn_val) {
4243
return adj * exp(-std_normal_lpdf(rtn_val));
4344
});
4445
});

0 commit comments

Comments
 (0)