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

◆ ones_array()

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

Return an array of ones.

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

Definition at line 17 of file ones_array.hpp.