Stan Math Library  2.20.0
reverse mode automatic differentiation
is_size_match.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_SCAL_ERR_IS_SIZE_MATCH_HPP
2 #define STAN_MATH_PRIM_SCAL_ERR_IS_SIZE_MATCH_HPP
3 
5 namespace stan {
6 namespace math {
7 
16 template <typename T_size1, typename T_size2>
17 inline bool is_size_match(T_size1 i, T_size2 j) {
18  return i == static_cast<T_size1>(j);
19 }
20 
21 } // namespace math
22 } // namespace stan
23 #endif
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.