1 #ifndef STAN_MATH_PRIM_SCAL_ERR_CHECK_CONSISTENT_SIZES_HPP 2 #define STAN_MATH_PRIM_SCAL_ERR_CHECK_CONSISTENT_SIZES_HPP 29 template <
typename T1,
typename T2>
63 template <
typename T1,
typename T2,
typename T3>
103 template <
typename T1,
typename T2,
typename T3,
typename T4>
123 template <
typename T1,
typename T2,
typename T3,
typename T4,
void check_consistent_size(const char *function, const char *name, const T &x, size_t expected_size)
Check if the dimension of x is consistent, which is defined to be expected_size if x is a vector or 1...
size_t size_of(const T &x)
size_t max_size(const T1 &x1, const T2 &x2)
int max(const std::vector< int > &x)
Returns the maximum coefficient in the specified column vector.
void check_consistent_sizes(const char *function, const char *name1, const T1 &x1, const char *name2, const T2 &x2)
Check if the dimension of x1 is consistent with x2.