Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ unitspaced_array()

std::vector< int > stan::math::unitspaced_array ( int  low,
int  high 
)
inline

Return an array of integers in an ordered sequence.

This produces an array from low to high (included).

Parameters
lowsmallest integer
highlargest integer
Returns
An array of size (high - low + 1) with elements linearly spaced between low and high.
Exceptions
std::domain_errorif high is less than low.

Definition at line 23 of file unitspaced_array.hpp.