1 #ifndef STAN_MATH_PRIM_MAT_ERR_IS_UNIT_VECTOR_HPP 2 #define STAN_MATH_PRIM_MAT_ERR_IS_UNIT_VECTOR_HPP 25 template <
typename T_prob>
27 const Eigen::Matrix<T_prob, Eigen::Dynamic, 1>& theta) {
29 T_prob seq = theta.squaredNorm();
fvar< T > fabs(const fvar< T > &x)
const double CONSTRAINT_TOLERANCE
The tolerance for checking arithmetic bounds In rank and in simplexes.
bool is_nonzero_size(const T_y &y)
Returns true if the specified matrix/vector is size nonzero.
bool is_unit_vector(const Eigen::Matrix< T_prob, Eigen::Dynamic, 1 > &theta)
Return true if the vector is not a unit vector or if any element is NaN.