Package: iterpc 0.4.2
iterpc: Efficient Iterator for Permutations and Combinations
Iterator for generating permutations and combinations. They can be either drawn with or without replacement, or with distinct/ non-distinct items (multiset). The generated sequences are in lexicographical order (dictionary order). The algorithms to generate permutations and combinations are memory efficient. These iterative algorithms enable users to process all sequences without putting all results in the memory at the same time. The algorithms are written in C/C++ for faster performance. Note: 'iterpc' is no longer being maintained. Users are recommended to switch to 'arrangements'.
Authors:
iterpc_0.4.2.tar.gz
iterpc_0.4.2.zip(r-4.5)iterpc_0.4.2.zip(r-4.4)iterpc_0.4.2.zip(r-4.3)
iterpc_0.4.2.tgz(r-4.4-any)iterpc_0.4.2.tgz(r-4.3-any)
iterpc_0.4.2.tar.gz(r-4.5-noble)iterpc_0.4.2.tar.gz(r-4.4-noble)
iterpc_0.4.2.tgz(r-4.4-emscripten)iterpc_0.4.2.tgz(r-4.3-emscripten)
iterpc.pdf |iterpc.html✨
iterpc/json (API)
# Install 'iterpc' in R: |
install.packages('iterpc', repos = c('https://randy3k.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/randy3k/iterpc/issues
Last updated 5 years agofrom:a97e58b051. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 01 2024 |
R-4.5-win | OK | Nov 01 2024 |
R-4.5-linux | OK | Nov 01 2024 |
R-4.4-win | OK | Nov 01 2024 |
R-4.4-mac | OK | Nov 01 2024 |
R-4.3-win | OK | Nov 01 2024 |
R-4.3-mac | OK | Nov 01 2024 |
Exports:getallgetcurrentgetlengthgetnextiter_wrapperiterpcmultichoosenc_multisetnp_multiset
Dependencies:arrangementsgmpiteratorsR6
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Get all permutations/combinations for a iterator | getall |
Get the current element of a iterator | getcurrent |
Get the length for a iterator | getlength |
Get the next permutation(s)/combination(s) for a iterator | getnext |
Wrap iterpc objects by iterators::iter | iter_wrapper |
Efficient Iterator for Permutations and Combinations | iterpc-package iterpc |
Calculate multinomial coefficient | multichoose |
Calculate the number of r-combinations of a multiset | nc_multiset |
Calculate the number of r-permutations of a multiset | np_multiset |