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

Commit

Permalink
Add spence construction to general construction function
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoCati committed Dec 7, 2022
1 parent 80c862c commit 8eb2285
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/sage/combinat/matrices/hadamard_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -1284,8 +1284,7 @@ def is_hadamard_matrix(M, normalized=False, skew=False, verbose=False):
@matrix_method
def hadamard_matrix(n,existence=False, check=True):
r"""
Tries to construct a Hadamard matrix using a combination of Paley
and Sylvester constructions.
Tries to construct a Hadamard matrix using the available methods.
INPUT:
Expand Down Expand Up @@ -1417,6 +1416,10 @@ def hadamard_matrix(n,existence=False, check=True):
if existence:
return True
M = turyn_type_hadamard_matrix_smallcases(n, check=False)
elif hadamard_matrix_spence_construction(n ,existence=True):
if existence:
return True
M = hadamard_matrix_spence_construction(n, check=False)
elif skew_hadamard_matrix(n, existence=True) is True:
if existence:
return True
Expand Down

0 comments on commit 8eb2285

Please sign in to comment.