Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Return a row vector of linearly spaced elements.
This produces a row vector from low to high (inclusive) with elements spaced as (high - low) / (K - 1). For K=1, the vector will contain the high value; for K=0 it returns an empty vector.
K | size of the row vector |
low | smallest value |
high | largest value |
std::domain_error | if K is negative, if low is nan or infinite, if high is nan or infinite, or if high is less than low. |
Definition at line 25 of file linspaced_row_vector.hpp.