Automatic Differentiation
 
Loading...
Searching...
No Matches
is_size_match.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_ERR_IS_SIZE_MATCH_HPP
2#define STAN_MATH_PRIM_ERR_IS_SIZE_MATCH_HPP
3
5namespace stan {
6namespace math {
7
16template <typename T_size1, typename T_size2>
17inline 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.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...