1#ifndef STAN_MATH_PRIM_CONSTRAINT_UNIT_VECTOR_FREE_HPP
2#define STAN_MATH_PRIM_CONSTRAINT_UNIT_VECTOR_FREE_HPP
23template <
typename EigVec, require_eigen_col_vector_t<EigVec>* =
nullptr>
25 auto&& x_ref =
to_ref(std::forward<EigVec>(x));
38template <
typename T, require_std_vector_t<T>* =
nullptr>
void check_unit_vector(const char *function, const char *name, const Vec &theta)
Throw an exception if the specified vector does not have unit Euclidiean length.
ref_type_t< T && > to_ref(T &&a)
This evaluates expensive Eigen expressions.
auto unit_vector_free(EigVec &&x)
Transformation of a unit length vector to a "free" vector However, we are just fixing the unidentifie...
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...