Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Added another test
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicapalencia committed Mar 28, 2015
1 parent 590afd1 commit 914e0ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sage/combinat/alternating_sign_matrix.py
Expand Up @@ -306,6 +306,9 @@ def inversion_number(self):
sage: asm = A([[0, 1, 0],[1, -1, 1],[0, 1, 0]])
sage: asm.inversion_number()
2
sage: P=Permutations(5)
sage: all(p.number_of_inversions()==AlternatingSignMatrix(p.to_matrix()).inversion_number() for p in P)
True
"""
inversion_num = 0
asm_matrix = self.to_matrix()
Expand Down

0 comments on commit 914e0ed

Please sign in to comment.