Stan Math Library
4.9.0
Automatic Differentiation
Loading...
Searching...
No Matches
◆
ones_array()
std::vector< double > stan::math::ones_array
(
int
K
)
inline
Return an array of ones.
Parameters
K
size of the array
Returns
An array of size K with all elements initialized to 1.
Exceptions
std::domain_error
if K is negative.
Definition at line
17
of file
ones_array.hpp
.
stan
math
[
Stan Home Page
]
© 2011–2019, Stan Development Team.