Skip to content

Commit b0b3008

Browse files
committed
Fix double expression template evaluation
1 parent 80bfa2a commit b0b3008

4 files changed

Lines changed: 26 additions & 26 deletions

File tree

stan/math/prim/prob/wiener4_lccdf_defective.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,11 @@ inline auto wiener_lccdf_defective(const T_y& y, const T_a& a, const T_t0& t0,
229229
const double& precision_derivatives = 1e-4) {
230230
using T_partials_return = partials_return_t<T_y, T_a, T_t0, T_w, T_v>;
231231
using ret_t = return_type_t<T_y, T_a, T_t0, T_w, T_v>;
232-
using T_y_ref = ref_type_if_t<!is_constant<T_y>::value, T_y>;
233-
using T_a_ref = ref_type_if_t<!is_constant<T_a>::value, T_a>;
234-
using T_t0_ref = ref_type_if_t<!is_constant<T_t0>::value, T_t0>;
235-
using T_w_ref = ref_type_if_t<!is_constant<T_w>::value, T_w>;
236-
using T_v_ref = ref_type_if_t<!is_constant<T_v>::value, T_v>;
232+
using T_y_ref = ref_type_t<T_y>;
233+
using T_a_ref = ref_type_t<T_a>;
234+
using T_t0_ref = ref_type_t<T_t0>;
235+
using T_w_ref = ref_type_t<T_w>;
236+
using T_v_ref = ref_type_t<T_v>;
237237
using internal::GradientCalc;
238238

239239
T_y_ref y_ref = y;

stan/math/prim/prob/wiener4_lcdf_defective.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -590,11 +590,11 @@ inline auto wiener_lcdf_defective(const T_y& y, const T_a& a, const T_t0& t0,
590590
const T_w& w, const T_v& v,
591591
const double& precision_derivatives = 1e-4) {
592592
using T_partials_return = partials_return_t<T_y, T_a, T_t0, T_w, T_v>;
593-
using T_y_ref = ref_type_if_t<!is_constant<T_y>::value, T_y>;
594-
using T_a_ref = ref_type_if_t<!is_constant<T_a>::value, T_a>;
595-
using T_t0_ref = ref_type_if_t<!is_constant<T_t0>::value, T_t0>;
596-
using T_w_ref = ref_type_if_t<!is_constant<T_w>::value, T_w>;
597-
using T_v_ref = ref_type_if_t<!is_constant<T_v>::value, T_v>;
593+
using T_y_ref = ref_type_t<T_y>;
594+
using T_a_ref = ref_type_t<T_a>;
595+
using T_t0_ref = ref_type_t<T_t0>;
596+
using T_w_ref = ref_type_t<T_w>;
597+
using T_v_ref = ref_type_t<T_v>;
598598
using internal::GradientCalc;
599599
using ret_t = return_type_t<T_y, T_a, T_t0, T_w, T_v>;
600600

stan/math/prim/prob/wiener_full_lccdf_defective.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@ inline auto wiener_lccdf_defective(const T_y& y, const T_a& a, const T_t0& t0,
8989
const T_sw& sw, const T_st0& st0,
9090
const double& precision_derivatives = 1e-8) {
9191
using ret_t = return_type_t<T_y, T_a, T_t0, T_w, T_v, T_sv, T_sw, T_st0>;
92-
using T_y_ref = ref_type_if_t<!is_constant<T_y>::value, T_y>;
93-
using T_a_ref = ref_type_if_t<!is_constant<T_a>::value, T_a>;
94-
using T_v_ref = ref_type_if_t<!is_constant<T_v>::value, T_v>;
95-
using T_w_ref = ref_type_if_t<!is_constant<T_w>::value, T_w>;
96-
using T_t0_ref = ref_type_if_t<!is_constant<T_t0>::value, T_t0>;
97-
using T_sv_ref = ref_type_if_t<!is_constant<T_sv>::value, T_sv>;
98-
using T_sw_ref = ref_type_if_t<!is_constant<T_sw>::value, T_sw>;
99-
using T_st0_ref = ref_type_if_t<!is_constant<T_st0>::value, T_st0>;
92+
using T_y_ref = ref_type_t<T_y>;
93+
using T_a_ref = ref_type_t<T_a>;
94+
using T_v_ref = ref_type_t<T_v>;
95+
using T_w_ref = ref_type_t<T_w>;
96+
using T_t0_ref = ref_type_t<T_t0>;
97+
using T_sv_ref = ref_type_t<T_sv>;
98+
using T_sw_ref = ref_type_t<T_sw>;
99+
using T_st0_ref = ref_type_t<T_st0>;
100100
using internal::GradientCalc;
101101
using T_partials_return
102102
= partials_return_t<T_y, T_a, T_t0, T_w, T_v, T_sv, T_sw, T_st0>;

stan/math/prim/prob/wiener_full_lcdf_defective.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -265,14 +265,14 @@ inline auto wiener_lcdf_defective(const T_y& y, const T_a& a, const T_t0& t0,
265265
const T_sw& sw, const T_st0& st0,
266266
const double& precision_derivatives = 1e-8) {
267267
using ret_t = return_type_t<T_y, T_a, T_t0, T_w, T_v, T_sv, T_sw, T_st0>;
268-
using T_y_ref = ref_type_if_t<!is_constant<T_y>::value, T_y>;
269-
using T_a_ref = ref_type_if_t<!is_constant<T_a>::value, T_a>;
270-
using T_v_ref = ref_type_if_t<!is_constant<T_v>::value, T_v>;
271-
using T_w_ref = ref_type_if_t<!is_constant<T_w>::value, T_w>;
272-
using T_t0_ref = ref_type_if_t<!is_constant<T_t0>::value, T_t0>;
273-
using T_sv_ref = ref_type_if_t<!is_constant<T_sv>::value, T_sv>;
274-
using T_sw_ref = ref_type_if_t<!is_constant<T_sw>::value, T_sw>;
275-
using T_st0_ref = ref_type_if_t<!is_constant<T_st0>::value, T_st0>;
268+
using T_y_ref = ref_type_t<T_y>;
269+
using T_a_ref = ref_type_t<T_a>;
270+
using T_v_ref = ref_type_t<T_v>;
271+
using T_w_ref = ref_type_t<T_w>;
272+
using T_t0_ref = ref_type_t<T_t0>;
273+
using T_sv_ref = ref_type_t<T_sv>;
274+
using T_sw_ref = ref_type_t<T_sw>;
275+
using T_st0_ref = ref_type_t<T_st0>;
276276
using internal::GradientCalc;
277277
using T_partials_return
278278
= partials_return_t<T_y, T_a, T_t0, T_w, T_v, T_sv, T_sw, T_st0>;

0 commit comments

Comments
 (0)