Stan Math Library
2.20.0
reverse mode automatic differentiation
stan
math
prim
arr
err
is_nonzero_size.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_PRIM_ARR_ERR_IS_NONZERO_SIZE_HPP
2
#define STAN_MATH_PRIM_ARR_ERR_IS_NONZERO_SIZE_HPP
3
4
#include <
stan/math/prim/meta.hpp
>
5
namespace
stan
{
6
namespace
math {
7
14
template
<
typename
T_y>
15
inline
bool
is_nonzero_size
(
const
T_y& y) {
16
return
y.size() > 0;
17
}
18
19
}
// namespace math
20
}
// namespace stan
21
#endif
stan
Definition:
log_sum_exp.hpp:8
meta.hpp
stan::math::is_nonzero_size
bool is_nonzero_size(const T_y &y)
Returns true if the specified matrix/vector is size nonzero.
Definition:
is_nonzero_size.hpp:15
[
Stan Home Page
]
© 2011–2018, Stan Development Team.