Specialization of ub_constrain
to apply a scalar upper bound elementwise to each input.
- Template Parameters
-
T | A type inheriting from EigenBase . |
U | Scalar. |
- Parameters
-
[in] | x | unconstrained input |
[in] | ub | upper bound on output |
- Returns
- upper-bound constrained value corresponding to inputs
- Template Parameters
-
T | A type inheriting from EigenBase or a var_value with inner type inheriting from EigenBase . |
U | Scalar. |
- Parameters
-
[in] | x | unconstrained input |
[in] | ub | upper bound on output |
- Returns
- upper-bound constrained value corresponding to inputs
Definition at line 90 of file ub_constrain.hpp.