Skip to content

Commit

Permalink
Fix linter in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tornaria committed Oct 27, 2023
1 parent 7792961 commit e3a46ed
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions src/sage/quadratic_forms/ternary.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def _reduced_ternary_form_eisenstein_with_matrix(a1, a2, a3, a23, a13, a12):
m12 = -m12
m22 = -m22
m32 = -m32
a13=-a13
a13 = -a13
if (a12 < 0):
# M *= diagonal_matrix([1, 1, -1])
m13 = -m13
Expand All @@ -186,23 +186,23 @@ def _reduced_ternary_form_eisenstein_with_matrix(a1, a2, a3, a23, a13, a12):
if (a12 == 0):
s3 = 1
if s1:
# M *= diagonal_matrix([-1, 1, 1])
m11 = -m11
m21 = -m21
m31 = -m31
a23 = -a23
# M *= diagonal_matrix([-1, 1, 1])
m11 = -m11
m21 = -m21
m31 = -m31
a23 = -a23
if s2:
# M *= diagonal_matrix([1, -1, 1])
m12 = -m12
m22 = -m22
m32 = -m32
a13 = -a13
# M *= diagonal_matrix([1, -1, 1])
m12 = -m12
m22 = -m22
m32 = -m32
a13 = -a13
if s3:
# M *= diagonal_matrix([1, 1, -1])
m13 = -m13
m23 = -m23
m33 = -m33
a12 = -a12
# M *= diagonal_matrix([1, 1, -1])
m13 = -m13
m23 = -m23
m33 = -m33
a12 = -a12

loop = not (abs(a23) <= a2 and abs(a13) <= a1 and abs(a12) <= a1 and a1 + a2 + a23 + a13 + a12 >= 0)

Expand Down Expand Up @@ -308,7 +308,6 @@ def _reduced_ternary_form_eisenstein_with_matrix(a1, a2, a3, a23, a13, a12):
matrix(ZZ, 3, (m11, m12, m13, m21, m22, m23, m31, m32, m33))



def _reduced_ternary_form_eisenstein_without_matrix(a1, a2, a3, a23, a13, a12):
"""
Find the coefficients of the equivalent unique reduced ternary form according to the conditions
Expand Down

0 comments on commit e3a46ed

Please sign in to comment.