Stan Math Library  2.20.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 
6 #include <cmath>
7 
8 namespace stan {
9 namespace math {
10 
11 inline double inv_sqrt(double x) {
12  using std::sqrt;
13  return inv(sqrt(x));
14 }
15 
16 } // namespace math
17 } // namespace stan
18 
19 #endif
fvar< T > inv_sqrt(const fvar< T > &x)
Definition: inv_sqrt.hpp:11
fvar< T > sqrt(const fvar< T > &x)
Definition: sqrt.hpp:13
fvar< T > inv(const fvar< T > &x)
Definition: inv.hpp:12

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