Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Get the [x]-th lexicographically ordered set of [p] elements in [dim] output is in [c], and should be sizeof(int)*[p] "Algorithm 515: Generation of a Vector from the Lexicographical Index"; Buckles, B.
P., and Lybanon, M. ACM Transactions on Mathematical Software, Vol. 3, No. 2, June 1977. User lucaroni from https://stackoverflow.com/questions/561/how-to-use-combinations-of-sets-as-test-data#794
[out] | c | output vector |
dim | dimension | |
p | number of elements | |
x | x-th lexicographically ordered set |
Definition at line 73 of file hcubature.hpp.