Stan Math Library
2.20.0
reverse mode automatic differentiation
stan
math
prim
arr
err
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
4
#include <
stan/math/prim/meta.hpp
>
5
#include <
stan/math/prim/scal/err/is_size_match.hpp
>
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
stan::math::is_matching_size
bool is_matching_size(const T_y1 &y1, const T_y2 &y2)
Return true if two structures are the same size.
Definition:
is_matching_size.hpp:24
stan
Definition:
log_sum_exp.hpp:8
meta.hpp
is_size_match.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.