Automatic Differentiation
 
Loading...
Searching...
No Matches
check_matching_sizes.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_ERR_CHECK_MATCHING_SIZES_HPP
2#define STAN_MATH_PRIM_ERR_CHECK_MATCHING_SIZES_HPP
3
6
7namespace stan {
8namespace math {
9
23template <typename T_y1, typename T_y2>
24inline void check_matching_sizes(const char* function, const char* name1,
25 const T_y1& y1, const char* name2,
26 const T_y2& y2) {
27 check_size_match(function, "size of ", name1, y1.size(), "size of ", name2,
28 y2.size());
29}
30
31} // namespace math
32} // namespace stan
33#endif
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 ...
Definition fvar.hpp:9