permoot

Crates.iopermoot
lib.rspermoot
version0.2.1
sourcesrc
created_at2022-10-06 22:14:04.816755
updated_at2022-10-06 23:04:28.91895
descriptionGeneral-purpose no_std permutation library
homepage
repositoryhttps://codeberg.org/T0mstone/permoot
max_upload_size
id681612
size33,160
T0mstone (T0mstone)

documentation

README

Permoot - A general-purpose permutation library

A permutation is a mathematical object describing a rearrangement of some (finite) number of objects.

As an example, sorting an array gives you a permutation on the array indices. Inversely, you can use any permutation on N elements as a way to reorder an array of length N (see [Permutation::apply])

Crate features

By default, permoot is no_std. No crate features are enabled by default.

  • The std feature enables a few extra features that require the standard library
  • The rand feature enables rand support, allowing you to generate random permutations

Possible future features

I might add these if I come around to it:

  • Iterator(s) over all permutations of a given length, according to some algorithm(s)
  • serde support
Commit count: 0

cargo fmt