Automatic Differentiation
 
Loading...
Searching...
No Matches
zeros_int_array.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_FUN_ZEROS_INT_ARRAY_HPP
2#define STAN_MATH_PRIM_FUN_ZEROS_INT_ARRAY_HPP
3
5#include <vector>
6
7namespace stan {
8namespace math {
9
17inline std::vector<int> zeros_int_array(int K) {
18 check_nonnegative("zeros_int_array", "size", K);
19 return std::vector<int>(K, 0);
20}
21
22} // namespace math
23} // namespace stan
24
25#endif
void check_nonnegative(const char *function, const char *name, const T_y &y)
Check if y is non-negative.
std::vector< int > zeros_int_array(int K)
Return an integer array of zeros.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...