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

◆ positive_ordered_constrain() [2/5]

template<typename Vec , require_col_vector_t< Vec > * = nullptr>
auto stan::math::positive_ordered_constrain ( const Vec &  x,
return_type_t< Vec > &  lp 
)
inline

Return a positive valued, increasing positive ordered vector derived from the specified free vector and increment the specified log probability reference with the log absolute Jacobian determinant of the transform.

The returned constrained vector will have the same dimensionality as the specified free vector.

Template Parameters
Ttype of elements in the vector
Parameters
xFree vector of scalars.
lpLog probability reference.
Returns
Positive, increasing ordered vector.

Definition at line 52 of file positive_ordered_constrain.hpp.