1#ifndef STAN_MATH_PRIM_ERR_CHECK_MATCHING_SIZES_HPP
2#define STAN_MATH_PRIM_ERR_CHECK_MATCHING_SIZES_HPP
23template <
typename T_y1,
typename T_y2>
25 const T_y1& y1,
const char* name2,
void check_matching_sizes(const char *function, const char *name1, const T_y1 &y1, const char *name2, const T_y2 &y2)
Check if two structures at the same size.
void check_size_match(const char *function, const char *name_i, T_size1 i, const char *name_j, T_size2 j)
Check if the provided sizes match.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...