Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Return a vector with 1 in the k-th position and zero elsewhere.
K | size of the vector |
k | position of the 1 (indexing from 1) |
std::domain_error | if K is not positive, or if k is less than 1 or greater than K. |
Definition at line 20 of file one_hot_vector.hpp.