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

◆ operator()()

template<typename Theta , typename YVec , typename Mean , require_eigen_vector_t< Theta > * = nullptr>
auto stan::math::poisson_log_likelihood::operator() ( const Theta &  theta,
const YVec &  y,
const std::vector< int > &  y_index,
Mean &&  mean,
std::ostream *   
) const
inline

Returns the lpmf for a Poisson with a log link across multiple groups.

No need to compute the log normalizing constant.

Template Parameters
ThetaA type inheriting from Eigen::EigenBase with dynamic sized rows and 1 column.
YVecA vector type containing integers.
Meantype of the mean of the latent normal distribution
Parameters
[in]thetalog Poisson rate for each group.
[in]yobserved counts
[in]y_indexgroup to which each observation belongs return lpmf for a Poisson with a log link.
[in]meanthe mean of the latent normal variable
[in,out]msgsstream for messages from likelihood and covariance

Definition at line 33 of file laplace_marginal_poisson_log_lpmf.hpp.