Stan Math Library
2.20.0
reverse mode automatic differentiation
stan
math
prim
scal
err
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
4
#include <
stan/math/prim/meta.hpp
>
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
stan
Definition:
log_sum_exp.hpp:8
meta.hpp
stan::math::is_size_match
bool is_size_match(T_size1 i, T_size2 j)
Return true if the provided sizes match.
Definition:
is_size_match.hpp:17
[
Stan Home Page
]
© 2011–2018, Stan Development Team.