inv_sqrt.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_SCAL_FUN_INV_SQRT_HPP
#define STAN_MATH_PRIM_SCAL_FUN_INV_SQRT_HPP
#include <cmath>
namespace stan {
namespace math {
inline double inv_sqrt(double x) {
using std::sqrt;
return 1.0 / sqrt(x);
}
}
}
#endif
stan::math::inv_sqrt
fvar< T > inv_sqrt(const fvar< T > &x)
Definition: inv_sqrt.hpp:14
stan::math::sqrt
fvar< T > sqrt(const fvar< T > &x)
Definition: sqrt.hpp:14
stan
Definition: log_sum_exp.hpp:8

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