Stan Math Library  2.14.0
reverse mode automatic differentiation
log.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_SCAL_FUN_LOG_HPP
2 #define STAN_MATH_PRIM_SCAL_FUN_LOG_HPP
3 
4 #include <cmath>
5 
6 namespace stan {
7  namespace math {
8 
16  inline double log(int x) {
17  return std::log(static_cast<double>(x));
18  }
19 
20  }
21 }
22 #endif
fvar< T > log(const fvar< T > &x)
Definition: log.hpp:14
var log(const var &a)
Return the natural log of the specified variable (cmath).
Definition: log.hpp:50

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