22 size_t p_size,
size_t p_pick, std::vector<size_t>& p_ind)
26 std::vector<size_t>
a(p_size);
27 for (
size_t i = 0; i < p_size; i++)
a[i] = i;
31 for (
size_t i = 0; i < p_pick; i++) p_ind[i] =
a[i];
38 std::set<size_t> p_set,
size_t p_pick, std::vector<size_t>& p_ind)
41 std::vector<size_t> inds(p_set.begin(), p_set.end());
45 for (
size_t i = 0; i < p_pick; i++) p_ind[i] = inds[i];