Skip to content

Commit

Permalink
wip fix one issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xuluze committed Jul 28, 2023
1 parent 7a62c96 commit 2b62c48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/geometry/lattice_polytope.py
Original file line number Diff line number Diff line change
Expand Up @@ -3220,7 +3220,7 @@ def index_of_max(iterable):
for k in range(1, n_f):
# Error for k == 1 already!
permutations_inv[n_s] = [S_f.one(), S_v.one()]
m = index_of_max(PM[k, tuple(permutations_inv[n_s][1](j+1) - 1 for j in range(n_v))])
m = index_of_max(tuple(PM[k, permutations_inv[n_s][1](j+1) - 1] for j in range(n_v)))
if m > 0:
permutations_inv[n_s][1] = permutations_inv[n_s][1] * PGE(S_v, 1, m+1)
d = (PM[k, permutations_inv[n_s][1](1) - 1]
Expand All @@ -3231,7 +3231,7 @@ def index_of_max(iterable):
continue
# otherwise:
for i in range(1, n_v):
m = index_of_max(PM[k, tuple(permutations_inv[n_s][1](j+1) - 1 for j in range(i,n_v))])
m = index_of_max(tuple(PM[k, permutations_inv[n_s][1](j+1) - 1] for j in range(i,n_v)))
if m > 0:
permutations_inv[n_s][1] = permutations_inv[n_s][1] \
* PGE(S_v, i + 1, m + i + 1)
Expand Down

0 comments on commit 2b62c48

Please sign in to comment.