Automatic Differentiation
 
Loading...
Searching...
No Matches
is_nonzero_size.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_ERR_IS_NONZERO_SIZE_HPP
2#define STAN_MATH_PRIM_ERR_IS_NONZERO_SIZE_HPP
3
5namespace stan {
6namespace math {
7
14template <typename T_y>
15inline 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.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition fvar.hpp:9