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

◆ ub_free() [2/4]

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

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

The transform is the reverse of the ub_constrain transform.

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

Definition at line 63 of file ub_free.hpp.