#permutation #permutations #order #sort #group

permutation

Small utility for creating, manipulating, and applying permutations

10 unstable releases (3 breaking)

Uses old Rust 2015

0.4.1 Jul 21, 2022
0.4.0 Jan 25, 2022
0.3.0 Jan 24, 2022
0.2.5 Jul 17, 2017
0.1.0 Mar 26, 2017

#64 in Algorithms

Download history 1137/week @ 2022-08-06 1133/week @ 2022-08-13 1314/week @ 2022-08-20 1337/week @ 2022-08-27 1258/week @ 2022-09-03 1218/week @ 2022-09-10 1274/week @ 2022-09-17 1247/week @ 2022-09-24 1462/week @ 2022-10-01 1262/week @ 2022-10-08 1210/week @ 2022-10-15 1491/week @ 2022-10-22 1473/week @ 2022-10-29 1393/week @ 2022-11-05 1327/week @ 2022-11-12 1529/week @ 2022-11-19

6,001 downloads per month
Used in 34 crates (10 directly)

Apache-2.0/MIT

40KB
600 lines

Rust Permutations

Permutations is a rust library for manipulating and applying permutations.

//! A module for representing permutations, applying them to slices and indices,
//! and computing them from sort orders.
//!
//! Some practical uses of this module are:
//!  * Calculate a sort, and apply it later.
//!  * Calculate a sort on one vector, and apply it to multiple other vectors.
//!  * Calculate the new index of an element before sorting.
//!  * Remember the prior index of an element after sorting.
//!  * Undo a sort.
//!  * Compare the orderings of elements.

License

Dual licensed Apache-2.0 and MIT

Credits

Copyright 2017-2022 Jeremy Salwen jeremysalwen@gmail.com and contributors

  • Patrick Chieppe
  • Sean Prendi
  • Philippe Solodov
  • Andrii Borziak

lib.rs:

A module for representing permutations, applying them to slices and indices, and computing them from sort orders.

Some practical uses of this module are:

  • Calculate a sort, and apply it later.
  • Calculate a sort on one vector, and apply it to another vector.
  • Calculate a sort on one vector, and apply it to multiple other vectors.
  • Calculate the new index of an element before sorting.
  • Remember the prior index of an element after sorting.
  • Undo a sort.
  • Compare the orderings of elements.

No runtime deps