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

Commit

Permalink
trac 18001 some details
Browse files Browse the repository at this point in the history
  • Loading branch information
Frédéric Chapoton committed Aug 12, 2016
1 parent 24a1fbd commit 204dac1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/sage/categories/examples/finite_semigroups.py
Expand Up @@ -116,7 +116,7 @@ def __init__(self, alphabet=('a','b','c','d'), category=None):
self.alphabet = alphabet
if category is None:
category = Semigroups().Finite().FinitelyGenerated())
Parent.__init__(self, category = category)
Parent.__init__(self, category=category)

def _repr_(self):
r"""
Expand Down
8 changes: 5 additions & 3 deletions src/sage/combinat/j_trivial_monoids.py
Expand Up @@ -71,8 +71,10 @@ def semigroup_generators(self):
Return the generating family of the monoid ``self``, namely all
unitriangular boolean matrices with n+1 1s
TODO:: Make immutable matrices in an easier way... This method should
be only one line.
.. TODO::
Make immutable matrices in an easier way... This method should
be only one line.
EXAMPLES::
Expand All @@ -99,7 +101,7 @@ def cardinality(self):
sage: UnitriangularBooleanMatrices(6).cardinality()
32768
"""
return 2**((self.n**2-self.n)//2)
return 2 ** ((self.n ** 2 - self.n) // 2)

def _an_element_(self):
"""
Expand Down

0 comments on commit 204dac1

Please sign in to comment.