1 #ifndef STAN_MATH_FWD_SCAL_FUN_TRIGAMMA_HPP 2 #define STAN_MATH_FWD_SCAL_FUN_TRIGAMMA_HPP 3 4 #include <stan/math/fwd/core.hpp> 5 #include <stan/math/fwd/scal/fun/floor.hpp> 6 #include <stan/math/fwd/scal/fun/sin.hpp> 7 #include <stan/math/prim/scal/fun/trigamma.hpp> 8 9 namespace stan { 10 namespace math { 11 12 /** 13 * Return the value of the trigamma function at the specified 14 * argument (i.e., the second derivative of the log Gamma function 15 * at the specified argument). 16 * 17 * @param u argument 18 * @return trigamma function at argument 19 */ 20 template <typename T> trigamma(const fvar<T> & u)21inline fvar<T> trigamma(const fvar<T>& u) { 22 return trigamma_impl(u); 23 } 24 25 } // namespace math 26 } // namespace stan 27 #endif 28