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

◆ simplex_constrain() [3/7]

template<typename T , require_std_vector_t< T > * = nullptr>
auto stan::math::simplex_constrain ( T &&  y)
inline

Return the simplex corresponding to the specified free vector.

This overload handles looping over the elements of a standard vector.

Template Parameters
VecA 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
[in]yfree vector
Returns
simplex of dimensionality one greater than y

Definition at line 148 of file simplex_constrain.hpp.