Package: multicool 1.0.1

multicool: Permutations of Multisets in Cool-Lex Order

A set of tools to permute multisets without loops or hash tables and to generate integer partitions. The permutation functions are based on C code from Aaron Williams. Cool-lex order is similar to colexicographical order. The algorithm is described in Williams, A. Loopless Generation of Multiset Permutations by Prefix Shifts. SODA 2009, Symposium on Discrete Algorithms, New York, United States. The permutation code is distributed without restrictions. The code for stable and efficient computation of multinomial coefficients comes from Dave Barber. The code can be download from <http://tamivox.org/dave/multinomial/index.html> and is distributed without conditions. The package also generates the integer partitions of a positive, non-zero integer n. The C++ code for this is based on Python code from Jerome Kelleher which can be found here <https://jeromekelleher.net/category/combinatorics.html>. The C++ code and Python code are distributed without conditions.

Authors:James Curran, Aaron Williams, Jerome Kelleher, Dave Barber

multicool_1.0.1.tar.gz
multicool_1.0.1.zip(r-4.5)multicool_1.0.1.zip(r-4.4)multicool_1.0.1.zip(r-4.3)
multicool_1.0.1.tgz(r-4.5-x86_64)multicool_1.0.1.tgz(r-4.5-arm64)multicool_1.0.1.tgz(r-4.4-x86_64)multicool_1.0.1.tgz(r-4.4-arm64)multicool_1.0.1.tgz(r-4.3-x86_64)multicool_1.0.1.tgz(r-4.3-arm64)
multicool_1.0.1.tar.gz(r-4.5-noble)multicool_1.0.1.tar.gz(r-4.4-noble)
multicool_1.0.1.tgz(r-4.4-emscripten)multicool_1.0.1.tgz(r-4.3-emscripten)
multicool.pdf |multicool.html
multicool/json (API)

# Install 'multicool' in R:
install.packages('multicool', repos = c('https://jmcurran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/jmcurran/multicool/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

cpp

7.74 score 2 stars 273 packages 11 scripts 31k downloads 9 exports 1 dependencies

Last updated 1 years agofrom:e1a805e750. Checks:12 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKMar 10 2025
R-4.5-win-x86_64OKMar 10 2025
R-4.5-mac-x86_64OKMar 10 2025
R-4.5-mac-aarch64OKMar 10 2025
R-4.5-linux-x86_64OKMar 10 2025
R-4.4-win-x86_64OKMar 10 2025
R-4.4-mac-x86_64OKMar 10 2025
R-4.4-mac-aarch64OKMar 10 2025
R-4.4-linux-x86_64OKMar 10 2025
R-4.3-win-x86_64OKMar 10 2025
R-4.3-mac-x86_64OKMar 10 2025
R-4.3-mac-aarch64OKMar 10 2025

Exports:allPermBBellgenCompinitMCmultinomnextPermS2Stirling2

Dependencies:Rcpp