1#ifndef STAN_MATH_FWD_FUN_INV_SQUARE_HPP
2#define STAN_MATH_FWD_FUN_INV_SQUARE_HPP
15 return fvar<T>(1 / square_x, -2 * x.
d_ / (square_x * x.
val_));
fvar< T > inv_square(const fvar< T > &x)
fvar< T > square(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,...