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

◆ ones_vector()

auto stan::math::ones_vector ( int  K)
inline

Return a vector of ones.

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

Definition at line 17 of file ones_vector.hpp.