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

◆ ones_row_vector()

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

Return a row vector of ones.

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

Definition at line 17 of file ones_row_vector.hpp.