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

◆ ones_int_array()

std::vector< int > stan::math::ones_int_array ( int  K)
inline

Return an integer array of ones.

Parameters
Ksize of the array
Returns
An integer array of size K with all elements initialized to 1.
Exceptions
std::domain_errorif K is negative.

Definition at line 17 of file ones_int_array.hpp.