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

◆ log1m_inv_logit()

double stan::math::opencl_kernels::log1m_inv_logit ( double  x)
inline

Return the the natural logarithm of 1 minus the inverse logit applied to the kernel generator expression.

\[ \mbox{log1m\_inv\_logit}(x) = \begin{cases} -\ln(\exp(x)+1) & \mbox{if } -\infty\leq x \leq \infty \\[6pt] \textrm{NaN} & \mbox{if } x = \textrm{NaN} \end{cases} \]

\[ \frac{\partial\, \mbox{log1m\_inv\_logit}(x)}{\partial x} = \begin{cases} -\frac{\exp(x)}{\exp(x)+1} & \mbox{if } -\infty\leq x\leq \infty \\[6pt] \textrm{NaN} & \mbox{if } x = \textrm{NaN} \end{cases} \]

Parameters
xargument
Returns
log of one minus the inverse logit of the argument

Definition at line 41 of file log1m_inv_logit.hpp.