1#ifndef STAN_MATH_PRIM_FUN_SECH_HPP
2#define STAN_MATH_PRIM_FUN_SECH_HPP
23 return inv(
cosh(std::forward<T>(x)));
fvar< T > cosh(const fvar< T > &x)
auto sech(T &&x)
Return the hyperbolic secant 1 / cosh(x) of the argument, elementwise for containers.
fvar< T > inv(const fvar< T > &x)
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...