1 #ifndef STAN_MATH_PRIM_SCAL_ERR_CHECK_CONSISTENT_SIZES_HPP 2 #define STAN_MATH_PRIM_SCAL_ERR_CHECK_CONSISTENT_SIZES_HPP 24 template <
typename T1,
typename T2>
26 const T1& x1,
const char* name2,
50 template <
typename T1,
typename T2,
typename T3>
52 const T1& x1,
const char* name2,
53 const T2& x2,
const char* name3,
82 template <
typename T1,
typename T2,
typename T3,
typename T4>
84 const T1& x1,
const char* name2,
85 const T2& x2,
const char* name3,
86 const T3& x3,
const char* name4,
98 template <
typename T1,
typename T2,
typename T3,
typename T4,
typename T5>
100 const T1& x1,
const char* name2,
101 const T2& x2,
const char* name3,
102 const T3& x3,
const char* name4,
103 const T4& x4,
const char* name5,
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)
Returns the size of the provided vector or the constant 1 if the input argument is not a vector...
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.