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

◆ ordered_constrain() [5/5]

template<typename VarVec , require_var_col_vector_t< VarVec > * = nullptr>
auto stan::math::ordered_constrain ( const VarVec &  x,
scalar_type_t< VarVec > &  lp 
)

Return a positive valued, increasing 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 the vector
Parameters
xFree vector of scalars.
lpLog probability reference.
Returns
Positive, increasing ordered vector.

Definition at line 73 of file ordered_constrain.hpp.