Stan Math Library
5.0.0
Automatic Differentiation
|
|
inline |
Return an array with 1 in the k-th position and zero elsewhere.
K | size of the array |
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_array.hpp.