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

◆ ub_free() [3/4]

template<typename T , typename U , require_not_std_vector_t< U > * = nullptr>
auto stan::math::ub_free ( const std::vector< T >  y,
const U &  ub 
)
inline

Return the free variable that corresponds to the specified upper-bounded variable with respect to the specified upper bound.

The transform is the reverse of the ub_constrain transform.

Template Parameters
Ttype of constrained variable
Utype of upper bound
Parameters
yconstrained variable with specified upper bound
ubupper bound
Returns
unconstrained variable with respect to upper bound
Exceptions
std::invalid_argumentif any element of constrained variable is greater than the upper bound.

Definition at line 91 of file ub_free.hpp.