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

◆ sum_to_zero_constrain() [5/7]

template<typename T , typename Lp , require_std_vector_t< T > * = nullptr, require_convertible_t< return_type_t< T >, Lp > * = nullptr>
auto stan::math::sum_to_zero_constrain ( T &&  y,
Lp &  lp 
)
inline

Return a vector with sum zero corresponding to the specified free vector.

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

Template Parameters
TA standard vector with inner type that is either a vector or a matrix
Lpunused
Parameters
[in]yfree vector or matrix
[in,out]lpunused
Returns
Zero-sum vectors or matrices which are one larger in each dimension

Definition at line 161 of file sum_to_zero_constrain.hpp.