Stan Math Library
2.20.0
reverse mode automatic differentiation
stan
math
prim
scal
fun
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 <
stan/math/prim/meta.hpp
>
5
#include <
stan/math/prim/scal/fun/inv.hpp
>
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
stan::math::inv_sqrt
fvar< T > inv_sqrt(const fvar< T > &x)
Definition:
inv_sqrt.hpp:11
stan::math::sqrt
fvar< T > sqrt(const fvar< T > &x)
Definition:
sqrt.hpp:13
stan
Definition:
log_sum_exp.hpp:8
meta.hpp
inv.hpp
stan::math::inv
fvar< T > inv(const fvar< T > &x)
Definition:
inv.hpp:12
[
Stan Home Page
]
© 2011–2018, Stan Development Team.