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
-
| T | type of constrained variable |
| U | type of upper bound |
- Parameters
-
| y | constrained variable with specified upper bound |
| ub | upper bound |
- Returns
- unconstrained variable with respect to upper bound
- Exceptions
-
| std::invalid_argument | if any element of constrained variable is greater than the upper bound. |
Definition at line 91 of file ub_free.hpp.