1#ifndef STAN_MATH_FWD_FUN_INV_SQRT_HPP
2#define STAN_MATH_FWD_FUN_INV_SQRT_HPP
16 return fvar<T>(1.0 / sqrt_x, -0.5 * x.
d_ / (x.
val_ * sqrt_x));
fvar< T > sqrt(const fvar< T > &x)
fvar< T > inv_sqrt(const fvar< T > &x)
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Scalar val_
The value of this variable.
Scalar d_
The tangent (derivative) of this variable.
This template class represents scalars used in forward-mode automatic differentiation,...