![]()  | 
  
    Stan Math Library
    5.1.0
    
   Automatic Differentiation 
   | 
   
      
  | 
  inline | 
Returns the log PMF of the Bernoulli distribution.
If containers are supplied, returns the log sum of the probabilities.
| T_n_cl | type of integer parameters | 
| T_prob_cl | type of chance of success parameters | 
| n | integer parameter | 
| theta | chance of success parameter | 
| std::domain_error | if theta is not a valid probability | 
| std::invalid_argument | if container sizes mismatch. | 
Definition at line 32 of file bernoulli_lpmf.hpp.