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

◆ unit_vector_constrain() [10/11]

template<typename T , require_rev_col_vector_t< T > * = nullptr>
auto stan::math::unit_vector_constrain ( const T &  y)
inline

Return the unit length vector corresponding to the free vector y.

See https://en.wikipedia.org/wiki/N-sphere#Generating_random_points

Template Parameters
EigMattype inheriting from EigenBase that has a var scalar type.
Parameters
yvector of K unrestricted variables
Returns
Unit length vector of dimension K

Definition at line 30 of file unit_vector_constrain.hpp.