![]() |
Stan Math Library
5.1.0
Automatic Differentiation
|
|
inline |
Returns the log PMF of the Generalized Linear Model (GLM) with Poisson distribution and log link function.
This is an overload of the GLM in prim/prob/poisson_log_glm_lpmf.hpp that is implemented in OpenCL.
T_y_cl | type of independent variable; this can be a matrix_cl vector of intercepts or a single value (wich will be broadcast - used for all instances); |
T_x_cl | type of the design matrix |
T_alpha_cl | type of the intercept(s); this can be a matrix_cl vector (of the same length as y) of intercepts or a single value (for models with constant intercept); |
T_beta_cl | type of the weight vector; this can also be a single value; |
y | positive integer scalar or vector parameter on OpenCL device. If it is a scalar it will be broadcast - used for all instances. |
x | design matrix on OpenCL device. This overload does not support broadcasting of a row vector x! |
alpha | intercept (in log odds) |
beta | weight vector |
std::domain_error | if x, beta or alpha is infinite. |
std::domain_error | if y is negative. |
std::invalid_argument | if container sizes mismatch. |
Definition at line 54 of file poisson_log_glm_lpmf.hpp.