1#ifndef STAN_MATH_PRIM_FUN_LINSPACED_VECTOR_HPP
2#define STAN_MATH_PRIM_FUN_LINSPACED_VECTOR_HPP
26 static constexpr const char* function =
"linspaced_vector";
32 return Eigen::VectorXd::LinSpaced(K, low, high);
void check_nonnegative(const char *function, const char *name, const T_y &y)
Check if y is non-negative.
auto linspaced_vector(int K, double low, double high)
Return a vector of linearly spaced elements.
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.
void check_finite(const char *function, const char *name, const T_y &y)
Return true if all values in y are finite.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...