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

◆ unit_vector_constrain() [5/11]

template<typename T , require_all_kernel_expressions_and_none_scalar_t< T > * = nullptr>
var_value< matrix_cl< double > > stan::math::unit_vector_constrain ( const var_value< T > &  A)
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
Ttype of the value of input matrix
Parameters
Avector of K unrestricted variables
Returns
Unit length vector

Definition at line 22 of file unit_vector_constrain.hpp.