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

◆ unit_vector_constrain() [6/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,
var lp 
)
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
lpLog probability reference to increment.
Returns
Unit length vector

Definition at line 45 of file unit_vector_constrain.hpp.