Stan Math Library  2.12.0
reverse mode automatic differentiation
inv_sqrt.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_SCAL_FUN_INV_SQRT_HPP
2 #define STAN_MATH_PRIM_SCAL_FUN_INV_SQRT_HPP
3 
4 #include <cmath>
5 
6 namespace stan {
7  namespace math {
8 
9  inline double inv_sqrt(const double x) {
10  using std::sqrt;
11  return 1.0 / sqrt(x);
12  }
13 
14  }
15 }
16 
17 #endif
fvar< T > inv_sqrt(const fvar< T > &x)
Definition: inv_sqrt.hpp:14
fvar< T > sqrt(const fvar< T > &x)
Definition: sqrt.hpp:14

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