We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sgn
Add the method sgn (sign) to the classes Permutation, Cycle and CycleDecomposition.
Permutation
Cycle
CycleDecomposition
Fact: the sign of a cycle is -1 if the cycle has even length.
Include a reference of the above fact in the PR.
The text was updated successfully, but these errors were encountered:
is_even
is_odd
Successfully merging a pull request may close this issue.
Add the method
sgn
(sign) to the classesPermutation
,Cycle
andCycleDecomposition
.Fact: the sign of a cycle is -1 if the cycle has even length.
Include a reference of the above fact in the PR.
The text was updated successfully, but these errors were encountered: