Return the positive value for the specified unconstrained input.
If the Jacobian
parameter is true
, the log density accumulator is incremented with the log absolute Jacobian determinant of the transform. All of the transforms are specified with their Jacobians in the Stan Reference Manual chapter Constraint Transforms.
- Template Parameters
-
Jacobian | if true , increment log density accumulator with log absolute Jacobian determinant of constraining transform |
T | A type inheriting from Eigen::EigenBase , a var_value with inner type inheriting from Eigen::EigenBase , a standard vector, or a scalar |
- Parameters
-
| x | unconstrained value or container |
[in,out] | lp | log density accumulator |
- Returns
- positive constrained version of unconstrained value(s)
If the Jacobian
parameter is true
, the log density accumulator is incremented with the log absolute Jacobian determinant of the transform. All of the transforms are specified with their Jacobians in the Stan Reference Manual chapter Constraint Transforms.
- Template Parameters
-
Jacobian | if true , increment log density accumulator with log absolute Jacobian determinant of constraining transform |
T | A standard vector with inner type inheriting from Eigen::EigenBase , a var_value with inner type inheriting from Eigen::EigenBase , a standard vector, or a scalar |
- Parameters
-
| x | unconstrained value or container |
[in,out] | lp | log density accumulator |
- Returns
- positive constrained version of unconstrained value(s)
Definition at line 65 of file positive_constrain.hpp.