Stan Math Library  2.20.0
reverse mode automatic differentiation
is_matching_size.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_ARR_ERR_IS_MATCHING_SIZE_HPP
2 #define STAN_MATH_PRIM_ARR_ERR_IS_MATCHING_SIZE_HPP
3 
6 
7 namespace stan {
8 namespace math {
9 
23 template <typename T_y1, typename T_y2>
24 inline 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_matching_size(const T_y1 &y1, const T_y2 &y2)
Return true if two structures are the same size.
bool is_size_match(T_size1 i, T_size2 j)
Return true if the provided sizes match.

     [ Stan Home Page ] © 2011–2018, Stan Development Team.