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

◆ std_normal_lpdf() [1/3]

template<bool propto, typename T_y_cl , require_all_prim_or_rev_kernel_expression_t< T_y_cl > * = nullptr, require_any_not_stan_scalar_t< T_y_cl > * = nullptr>
return_type_t< T_y_cl > stan::math::std_normal_lpdf ( const T_y_cl &  y)
inline

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_y_cltype of scalar
Parameters
ySequence of scalars.
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.