![]() |
Stan Math Library
5.1.0
Automatic Differentiation
|
|
inline |
Returns the log PMF of the Generalized Linear Model (GLM) with categorical distribution and logit (softmax) link function.
This is an overload of the GLM in prim/prob/categorical_logit_glm_lpmf.hpp that is implemented in OpenCL.
T_alpha | type of the intercept vector |
T_beta | type of the matrix of weights |
y | a scalar or vector of classes. If it is a scalar it will be broadcast - used for all instances. Values should be between 1 and number of classes, including endpoints. |
x | design matrix on OpenCL device. This overload does not support broadcasting of a row vector x! |
alpha | intercept vector (in log odds) |
beta | weight matrix |
std::domain_error | x, beta or alpha is infinite or y is not within bounds |
std::invalid_argument | if container sizes mismatch. |
Definition at line 49 of file categorical_logit_glm_lpmf.hpp.