1#ifndef STAN_MATH_PRIM_FUN_LINSPACED_INT_ARRAY_HPP
2#define STAN_MATH_PRIM_FUN_LINSPACED_INT_ARRAY_HPP
34 static constexpr const char* function =
"linspaced_int_array";
41 Eigen::VectorXi v = Eigen::VectorXi::LinSpaced(K, low, high);
42 return {v.data(), v.data() + K};
void check_nonnegative(const char *function, const char *name, const T_y &y)
Check if y is non-negative.
std::vector< int > linspaced_int_array(int K, int low, int high)
Return an array of linearly spaced integers.
void check_greater_or_equal(const char *function, const char *name, const T_y &y, const T_low &low, Idxs... idxs)
Throw an exception if y is not greater or equal than low.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...