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

◆ positive_constrain() [1/3]

template<typename T >
auto stan::math::positive_constrain ( const T &  x)
inline

Return the positive value for the specified unconstrained input.

The transform applied is

\(f(x) = \exp(x)\).

Parameters
xArbitrary input scalar or container.
Returns
Input transformed to be positive.

Definition at line 23 of file positive_constrain.hpp.