forked from sympy/sympy
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
permutations: coverage to 100% and other changes
Misc changes other than docstring edits and test addition: no testing in the _af_foo routines to allow them to be as fast as possible (as private methods) __invert__ uses duplicating _af_invert now Permutations support the iter method so list(P) will give P.array_form error corrected in parity which used the _cyclic_form which is now not inclusive of singletons the code of runs was simplified and moved to iterables the docstring of josephus was written to be less historical and more descriptive random_permutation is renamed random since, being a classmethod, it will be addressed as Permutation.random (clearly indicating it is related to Permutation).
- Loading branch information
Showing
6 changed files
with
181 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.