Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ conditionally_grad_sw()

template<GradientCalc GradSW, typename F , typename T_y , typename T_a , typename T_v , typename T_w , typename T_sv , typename T_sw , typename T_err , std::enable_if_t<!GradSW > * = nullptr>
auto stan::math::internal::conditionally_grad_sw ( F &&  functor,
T_y &&  y_diff,
T_a &&  a,
T_v &&  v,
T_w &&  w,
T_sv &&  sv,
T_sw &&  sw,
T_err &&  log_error 
)
inline

Helper function for agnostically calling wiener5 functions (to be integrated over) or directly calling wiener7 functions, accounting for the different number of arguments.

Specialisation for wiener5 functions

Template Parameters
GradSWWhether the gradient of sw is computed
FType of Gradient/density functor
T_ytype of scalar variable
T_atype of boundary separation
T_vtype of drift rate
T_wtype of relative starting point
T_svtype of inter-trial variability in v
T_swtype of inter-trial variability in w
T_errtype of log error tolerance
Parameters
functorGradient/density functor to apply
y_diffA scalar variable; the reaction time in seconds without non-decision time
aThe boundary separation
vThe drift rate
wThe relative starting point
svThe inter-trial variability of the drift rate
swThe inter-trial variability of the relative starting point
log_errorThe log error tolerance
Returns
Functor applied to arguments

Specialisation for wiener7 functions

Template Parameters
GradSWWhether the gradient of sw is computed
FType of Gradient/density functor
T_ytype of scalar variable
T_atype of boundary separation
T_vtype of drift rate
T_wtype of relative starting point
T_svtype of inter-trial variability in v
T_swtype of inter-trial variability in w
T_errtype of log error tolerance
Parameters
functorGradient/density functor to apply
y_diffA scalar variable; the reaction time in seconds without non-decision time
aThe boundary separation
vThe drift rate
wThe relative starting point
svThe inter-trial variability of the drift rate
swThe inter-trial variability of the relative starting point
log_errorThe log error tolerance
Returns
Functor applied to arguments

Definition at line 77 of file wiener_full_lpdf.hpp.