![]()  | 
  
    Stan Math Library
    5.1.0
    
   Automatic Differentiation 
   | 
   
      
  | 
  inline | 
Return a negative binomial random variate with the specified log-location and inverse dispersion parameters using the given random number generator.
eta and phi can each be a scalar or a one-dimensional container. Any non-scalar inputs must be the same size.
| T_loc | Type of log-location parameter | 
| T_inv | Type of inverse overdispersion parameter | 
| RNG | type of random number generator | 
| eta | (Sequence of) positive log-location parameter(s) | 
| phi | (Sequence of) positive inverse dispersion parameter(s) | 
| rng | random number generator | 
| std::domain_error | if eta is non-finite or phi is nonpositive | 
| std::invalid_argument | if non-scalar arguments are of different sizes | 
Definition at line 37 of file neg_binomial_2_log_rng.hpp.