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.

Version: 1.0.1
Depends: methods, Rcpp (≥ 0.11.2)
LinkingTo: Rcpp
Published: 2024-02-05
Author: James Curran, Aaron Williams, Jerome Kelleher, Dave Barber
Maintainer: James Curran <j.curran at auckland.ac.nz>
BugReports: https://github.com/jmcurran/multicool/issues
License: GPL-2
URL: https://github.com/jmcurran/multicool
NeedsCompilation: yes
Materials: README
CRAN checks: multicool results

Documentation:

Reference manual: multicool.pdf

Downloads:

Package source: multicool_1.0.1.tar.gz
Windows binaries: r-devel: multicool_1.0.1.zip, r-release: multicool_1.0.1.zip, r-oldrel: multicool_1.0.1.zip
macOS binaries: r-release (arm64): multicool_1.0.1.tgz, r-oldrel (arm64): multicool_1.0.1.tgz, r-release (x86_64): multicool_1.0.1.tgz
Old sources: multicool archive

Reverse dependencies:

Reverse imports: alphabetr, BMRMM, DNAtools, jack, ks, relSim, SIDES, splitSelect

Linking:

Please use the canonical form https://CRAN.R-project.org/package=multicool to link to this page.