Skip to content

Commit

Permalink
Improved coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
RuchitJagodara committed Feb 8, 2024
1 parent e9565b0 commit 91ec122
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sage/groups/matrix_gps/linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,14 +344,13 @@ def order(self):

if self.base_ring().is_finite():
q = self.base_ring().order()
ord = prod(q**n - q**i for i in range(n)) / (q-1)
ord = prod(q**n - q**i for i in range(n))
if self._special:
return ord / (q-1)
return ord

if self._special and n == 1:
return 1

return Infinity

cardinality = order

0 comments on commit 91ec122

Please sign in to comment.