1 #ifndef STAN_MATH_PRIM_MAT_FUN_UNIT_VECTOR_CONSTRAIN_HPP
2 #define STAN_MATH_PRIM_MAT_FUN_UNIT_VECTOR_CONSTRAIN_HPP
23 template <
typename T,
int R,
int C>
24 Eigen::Matrix<T, R, C>
43 template <
typename T,
int R,
int C>
44 Eigen::Matrix<T, R, C>
fvar< T > sqrt(const fvar< T > &x)
bool check_vector(const char *function, const char *name, const Eigen::Matrix< T, R, C > &x)
Return true if the matrix is either a row vector or column vector.
fvar< T > dot_self(const Eigen::Matrix< fvar< T >, R, C > &v)
bool check_nonzero_size(const char *function, const char *name, const T_y &y)
Return true if the specified matrix/vector is of non-zero size.
Eigen::Matrix< fvar< T >, R, C > unit_vector_constrain(const Eigen::Matrix< fvar< T >, R, C > &y)
bool check_positive_finite(const char *function, const char *name, const T_y &y)
Return true if y is positive and finite.