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

Commit

Permalink
fix mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton committed Sep 25, 2022
1 parent 8540c9a commit a4f089d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sage/algebras/letterplace/free_algebra_letterplace.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Copyright (C) 2011 Simon King <[email protected]>
# Distributed under the terms of the GNU General Public License (GPL),
# version 2 or any later version. The full text of the GPL is available at:
# http://www.gnu.org/licenses/
# https://www.gnu.org/licenses/
#
###############################################################################

Expand Down Expand Up @@ -185,7 +185,7 @@ cdef MPolynomialRing_libsingular make_letterplace_ring(base_ring, blocks):
cdef i
cdef tuple names0 = base_ring.variable_names()
cdef list names = list(names0)
for i in range(blocks):
for i in range(1, blocks):
T += T0
names.extend([x + '_' + str(i) for x in names0])
return PolynomialRing(base_ring.base_ring(), names, order=T,
Expand Down Expand Up @@ -340,7 +340,7 @@ cdef class FreeAlgebra_letterplace(Algebra):
p = self._current_ring.gen(i)
cdef int n
cdef int j = self.__ngens - 1
for n in range(deg):
for n in range(1, deg):
j += self.__ngens
p *= self._current_ring.gen(j)
return FreeAlgebraElement_letterplace(self, p)
Expand Down Expand Up @@ -689,7 +689,7 @@ cdef class FreeAlgebra_letterplace(Algebra):
CG = CyclicPermutationGroup(C.ngens())
for y in G:
out.extend([y] + [y * CG[ngens * (n + 1)]
for n in xrange(d - y.degree())])
for n in range(d - y.degree())])
return C.ideal(out)

###########################
Expand Down

0 comments on commit a4f089d

Please sign in to comment.