Stan Math Library
5.0.0
Automatic Differentiation
|
std::vector< T > stan::math::head | ( | const std::vector< T > & | sv, |
size_t | n | ||
) |
Return the specified number of elements as a standard vector from the front of the specified standard vector.
T | type of elements in the vector |
sv | Standard vector. |
n | Size of return. |
std::out_of_range | if n is out of range. |