Skip to content

Commit

Permalink
cache order to make hash reasonable
Browse files Browse the repository at this point in the history
  • Loading branch information
mantepse committed Oct 30, 2024
1 parent f636d76 commit 227551d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sage/groups/perm_gps/permgroup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2354,6 +2354,7 @@ def _order(self):
# Compute the order.
return Integer(len(unique)).factorial()

@cached_method
def order(self):
"""
Return the number of elements of this group.
Expand Down

0 comments on commit 227551d

Please sign in to comment.