Skip to content

Commit fae6798

Browse files
committed
suggested details
1 parent 3b8f279 commit fae6798

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/sage/categories/algebras_with_basis.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
r"""
22
Algebras With Basis
33
"""
4-
#*****************************************************************************
4+
# ****************************************************************************
55
# Copyright (C) 2008 Teresa Gomez-Diaz (CNRS) <[email protected]>
66
# 2008-2013 Nicolas M. Thiery <nthiery at users.sf.net>
77
#
88
# Distributed under the terms of the GNU General Public License (GPL)
99
# https://www.gnu.org/licenses/
10-
#******************************************************************************
10+
# *****************************************************************************
1111

1212
from sage.categories.cartesian_product import CartesianProductsCategory
1313
from sage.categories.category_with_axiom import CategoryWithAxiom_over_base_ring
@@ -106,7 +106,7 @@ class AlgebrasWithBasis(CategoryWithAxiom_over_base_ring):
106106
sage: TestSuite(AlgebrasWithBasis(QQ)).run()
107107
"""
108108

109-
def example(self, alphabet=('a','b','c')):
109+
def example(self, alphabet=('a', 'b', 'c')):
110110
"""
111111
Return an example of algebra with basis.
112112
@@ -259,7 +259,7 @@ def one_from_cartesian_product_of_one_basis(self):
259259
....: SymmetricGroupAlgebra(QQ, 4)]).one()
260260
B[(0, [1, 2, 3])] + B[(1, [1, 2, 3, 4])]
261261
"""
262-
return self.sum_of_monomials( zip( self._sets_keys(), (set.one_basis() for set in self._sets)) )
262+
return self.sum_of_monomials(zip(self._sets_keys(), (set.one_basis() for set in self._sets)))
263263

264264
@lazy_attribute
265265
def one(self):
@@ -370,7 +370,8 @@ def product_on_basis(self, t1, t2):
370370
371371
TODO: optimize this implementation!
372372
"""
373-
return tensor( module.monomial(x1)*module.monomial(x2) for (module, x1, x2) in zip(self._sets, t1, t2) ) #.
373+
return tensor(module.monomial(x1) * module.monomial(x2)
374+
for module, x1, x2 in zip(self._sets, t1, t2))
374375

375376
class ElementMethods:
376377
"""

0 commit comments

Comments
 (0)