Stan Math Library  2.20.0
reverse mode automatic differentiation
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 
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
bool is_nonzero_size(const T_y &y)
Returns true if the specified matrix/vector is size nonzero.

     [ Stan Home Page ] © 2011–2018, Stan Development Team.