1#ifndef STAN_MATH_PRIM_ERR_IS_UNIT_VECTOR_HPP
2#define STAN_MATH_PRIM_ERR_IS_UNIT_VECTOR_HPP
27template <
typename EigVec, require_eigen_vector_t<EigVec>* =
nullptr>
typename value_type< T >::type value_type_t
Helper function for accessing underlying type.
bool is_nonzero_size(const T_y &y)
Returns true if the specified matrix/vector is size nonzero.
bool is_unit_vector(const EigVec &theta)
Return true if the vector is not a unit vector or if any element is NaN.
const double CONSTRAINT_TOLERANCE
The tolerance for checking arithmetic bounds in rank and in simplexes.
fvar< T > fabs(const fvar< T > &x)
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...