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

Commit

Permalink
trac #34313: extra care
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoudert committed Aug 9, 2022
1 parent 9bf5ba9 commit f2323c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sage/graphs/strongly_regular_db.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1204,7 +1204,8 @@ def SRG_from_RSHCD(v, k, l, mu, existence=False, check=True):
ValueError: I do not know how to build a (784, 0, 14, 38)-SRG from a RSHCD
"""
from sage.combinat.matrices.hadamard_matrix import regular_symmetric_hadamard_matrix_with_constant_diagonal
sgn = lambda x: 1 if x >= 0 else -1
def sgn(x):
return 1 if x >= 0 else -1
n = v
a = (n-4*mu)//2
e = 2*k - n + 1 + a
Expand Down Expand Up @@ -1649,7 +1650,7 @@ def is_switch_OA_srg(int v, int k, int l, int mu):
cdef int n_2_p_1 = v
cdef int n = <int> floor(sqrt(n_2_p_1 - 1))
if n*n != n_2_p_1-1: # is it a square?
if n*n != n_2_p_1 - 1: # is it a square?
return None
cdef int c = k//n
Expand Down

0 comments on commit f2323c0

Please sign in to comment.