Package: multicool Type: Package Title: Permutations of Multisets in Cool-Lex Order Version: 1.0.2.001 Authors@R: c( person("James", "Curran", email = "j.curran@auckland.ac.nz", role = c("aut", "cre")), person("Aaron", "Williams", role = "aut"), person("Jerome", "Kelleher", role = "aut")) Description: 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. Multinomial coefficients, Stirling numbers of the second kind and Bell numbers are computed exactly using the 'gmp' package. 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 is included in the package, and the algorithm is described in Kelleher and O'Sullivan (2009) . The C++ code and Python code are distributed without conditions. URL: https://github.com/jmcurran/multicool BugReports: https://github.com/jmcurran/multicool/issues Encoding: UTF-8 License: GPL-2 Depends: methods, Rcpp (>= 0.11.2) Imports: gmp LinkingTo: Rcpp Config/roxygen2/version: 8.0.0 Config/pak/sysreqs: libgmp3-dev Repository: https://jmcurran.r-universe.dev Date/Publication: 2026-10-22 01:44:41 UTC RemoteUrl: https://github.com/jmcurran/multicool RemoteRef: HEAD RemoteSha: 857dc304727d60af4455ea3d4a6fb58881f47c52 NeedsCompilation: yes Packaged: 2026-10-22 05:08:59 UTC; root Author: James Curran [aut, cre], Aaron Williams [aut], Jerome Kelleher [aut] Maintainer: James Curran