1#ifndef STAN_MATH_PRIM_FUN_UNITSPACED_ARRAY_HPP
2#define STAN_MATH_PRIM_FUN_UNITSPACED_ARRAY_HPP
24 static constexpr const char* function =
"unitspaced_array";
27 int K = std::abs(high - low + 1);
28 std::vector<int> result(K);
29 Eigen::Map<Eigen::VectorXi>(result.data(), K)
30 = Eigen::VectorXi::LinSpaced(K, low, high);
std::vector< int > unitspaced_array(int low, int high)
Return an array of integers in an ordered sequence.
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 ...