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

◆ operator()()

template<typename ThetaVec , typename Eta , typename Mean , require_all_eigen_vector_t< ThetaVec > * = nullptr>
auto stan::math::neg_binomial_2_log_likelihood::operator() ( const ThetaVec &  theta,
const Eta &  eta,
const std::vector< int > &  y,
const std::vector< int > &  y_index,
Mean &&  mean,
std::ostream *  pstream 
) const
inline

Returns the lpmf for a negative binomial (2nd parameterization, log link) across multiple groups.

The dispersion eta is either a scalar shared by all groups or a vector with one entry per group.

Definition at line 37 of file laplace_marginal_neg_binomial_2_log_lpmf.hpp.