Stan Math Library  2.20.0
reverse mode automatic differentiation
std_normal_log.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_SCAL_PROB_STD_NORMAL_LOG_HPP
2 #define STAN_MATH_PRIM_SCAL_PROB_STD_NORMAL_LOG_HPP
3 
6 
7 namespace stan {
8 namespace math {
9 
24 template <bool propto, typename T_y>
25 typename return_type<T_y>::type std_normal_log(const T_y& y) {
26  return std_normal_lpdf<propto, T_y>(y);
27 }
28 
32 template <typename T_y>
33 inline typename return_type<T_y>::type std_normal_log(const T_y& y) {
34  return std_normal_lpdf<T_y>(y);
35 }
36 
37 } // namespace math
38 } // namespace stan
39 #endif
boost::math::tools::promote_args< double, typename scalar_type< T >::type, typename return_type< Types_pack... >::type >::type type
Definition: return_type.hpp:36
return_type< T_y >::type std_normal_log(const T_y &y)
The log of a standard normal density for the specified scalar(s).

     [ Stan Home Page ] © 2011–2018, Stan Development Team.