Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ inv_logit() [6/6]

template<typename T , require_stan_scalar_or_eigen_t< T > * = nullptr>
auto stan::math::inv_logit ( const var_value< T > &  a)
inline

The inverse logit function for variables (stan).

See inv_logit() for the double-based version.

The derivative of inverse logit is

\(\frac{d}{dx} \mbox{logit}^{-1}(x) = \mbox{logit}^{-1}(x) (1 - \mbox{logit}^{-1}(x))\).

Template Parameters
TArithmetic or a type inheriting from EigenBase.
Parameters
aArgument variable.
Returns
Inverse logit of argument.

Definition at line 26 of file inv_logit.hpp.