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

◆ log1m_exp() [6/6]

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

Return the log of 1 minus the exponential of the specified variable.

The derivative of log(1 - exp(x)) with respect to x is -1 / expm1(-x).

Template Parameters
TArithmetic or a type inheriting from EigenBase.
Parameters
[in]xArgument.
Returns
Natural logarithm of one minus the exponential of the argument.

Definition at line 25 of file log1m_exp.hpp.