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

◆ ordered_logistic_glm_lpmf() [1/3]

template<bool propto, typename T_y , typename T_x , typename T_beta , typename T_cuts , require_all_prim_or_rev_kernel_expression_t< T_y, T_x, T_beta, T_cuts > * = nullptr>
return_type_t< T_x, T_beta, T_cuts > stan::math::ordered_logistic_glm_lpmf ( const T_y &  y,
const T_x &  x,
const T_beta &  beta,
const T_cuts &  cuts 
)

Returns the log PMF of the ordinal regression Generalized Linear Model (GLM).

This is equivalent to and faster than ordered_logistic_lpmf(y, x * beta, cuts). This is an overload of the GLM in prim/prob/ordered_logistic_glm_lpmf.hpp that is implemented in OpenCL.

Template Parameters
T_betatype the vector of weights
T_cutstype the vector of cutpoints
Parameters
ya scalar or vector of classes on OpenCL device. If it is a scalar it will be broadcast - used for all instances. Values should be between 1 and number of classes, including endpoints.
xdesign matrix or row vector on OpenCL device. This overload does not support broadcasting of a row vector x!
betaweight vector
cutscutpoints vector
Returns
log probability
Exceptions
std::domain_errorIf any class is not between 1 and the number of cutpoints plus 2 or if the cutpoint vector is not sorted in ascending order or any input is not finite
std::invalid_argumentif container sizes mismatch.

Definition at line 52 of file ordered_logistic_glm_lpmf.hpp.