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

◆ std_normal_lpdf() [2/3]

template<bool propto, typename T_y , require_all_not_nonscalar_prim_or_rev_kernel_expression_t< T_y > * = nullptr>
return_type_t< T_y > stan::math::std_normal_lpdf ( const T_y &  y)

The log of the normal density for the specified scalar(s) given a location of 0 and a scale of 1.

y can be either a scalar or a vector.

The result log probability is defined to be the sum of the log probabilities for each observation.

Template Parameters
T_ytype of scalar
Parameters
y(Sequence of) scalar(s).
Returns
The log of the product of the densities.
Exceptions
std::domain_errorif any scalar is nan.

Definition at line 32 of file std_normal_lpdf.hpp.