:orphan: # PetscDTEnumSubset Split the integers [0, ..., n - 1] into two complementary ordered subsets, the first subset of size k and being the jth subset of that size in lexicographic order. ## Input Parameters - ***n -*** a non-negative integer (see note about limits below) - ***k -*** an integer in [0, n] - ***j -*** an index in [0, n choose k) ## Output Parameters - ***perm -*** the jth subset of size k of the integers [0, ..., n - 1], followed by its complementary set. - ***isOdd -*** if not `NULL`, return whether perm is an even or odd permutation. ## Note Limited by arguments such that `n` choose `k` can be represented by `PetscInt` ## See Also `PetscDTEnumSubset()`, `PetscDTSubsetIndex()`, `PetscDTFactorial()`, `PetscDTFactorialInt()`, `PetscDTBinomial()`, `PetscDTBinomialInt()`, `PetscDTEnumPerm()`, `PetscDTPermIndex()` ## Level beginner ## Location include/petscdt.h --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscdt.h) [Index of all DT routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)