Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Return an integer 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_int_array.hpp.