Loading [MathJax]/extensions/TeX/AMSsymbols.js
Automatic Differentiation
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches

◆ ordered_constrain() [3/5]

template<typename T , require_std_vector_t< T > * = nullptr>
auto stan::math::ordered_constrain ( const T &  x)
inline

Return a positive valued, increasing ordered vector derived from the specified free vector.

Return an increasing ordered vector derived from the specified free vector.

The returned constrained vector will have the same dimensionality as the specified free vector. This overload handles looping over the elements of a standard vector.

Template Parameters
TA standard vector with inner type inheriting from Eigen::DenseBase or a var_value with inner type inheriting from Eigen::DenseBase with compile time dynamic rows and 1 column
Parameters
xFree vector of scalars
Returns
Positive, increasing ordered vector.

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

Parameters
xFree vector of scalars
Returns
Increasing ordered vector

Definition at line 79 of file ordered_constrain.hpp.