Skip to content

Commit 41a56fc

Browse files
committed
Add Cooper Wallis construction to general hadamard_matrix method
1 parent 1f955fc commit 41a56fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/sage/combinat/matrices/hadamard_matrix.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,6 +1304,10 @@ def hadamard_matrix(n,existence=False, check=True):
13041304
if existence:
13051305
return True
13061306
M = hadamard_matrix_156()
1307+
elif hadamard_matrix_cooper_wallis_smallcases(n, existence=True):
1308+
if existence:
1309+
return True
1310+
M = hadamard_matrix_cooper_wallis_smallcases(n, check=False)
13071311
elif turyn_type_hadamard_matrix_smallcases(n, existence=True):
13081312
if existence:
13091313
return True

0 commit comments

Comments
 (0)