Automatic Differentiation
 
Loading...
Searching...
No Matches
is_matching_size.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_ERR_IS_MATCHING_SIZE_HPP
2#define STAN_MATH_PRIM_ERR_IS_MATCHING_SIZE_HPP
3
6
7namespace stan {
8namespace math {
9
23template <typename T_y1, typename T_y2>
24inline bool is_matching_size(const T_y1& y1, const T_y2& y2) {
25 return is_size_match(y1.size(), y2.size());
26}
27
28} // namespace math
29} // namespace stan
30#endif
bool is_size_match(T_size1 i, T_size2 j)
Return true if the provided sizes match.
bool is_matching_size(const T_y1 &y1, const T_y2 &y2)
Return true if two structures are the same size.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...