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

◆ log_cosh() [5/5]

template<typename T , require_var_matrix_t< T > * = nullptr>
auto stan::math::log_cosh ( T &&  x)
inline

Return the elementwise natural logarithm of the hyperbolic cosine of the argument.

Template Parameters
Tvar_value with inner Eigen type
Parameters
xvar_value with inner Eigen type
Returns
elementwise log(cosh(x)), with derivative tanh(x)

Definition at line 38 of file log_cosh.hpp.