Skip to content

Commit

Permalink
override cardinality, not order, as mentioned in categories.finite_gr…
Browse files Browse the repository at this point in the history
…oups.FiniteGroups.ParentMethods.cardinality
  • Loading branch information
mantepse committed Oct 30, 2024
1 parent 227551d commit 7b3c63f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/sage/groups/perm_gps/permgroup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2355,7 +2355,7 @@ def _order(self):
return Integer(len(unique)).factorial()

@cached_method
def order(self):
def cardinality(self):
"""
Return the number of elements of this group.
Expand Down Expand Up @@ -2391,8 +2391,6 @@ def order(self):

return Integer(self.gap().Size())

cardinality = order

def random_element(self):
"""
Return a random element of this group.
Expand Down

0 comments on commit 7b3c63f

Please sign in to comment.