Skip to content

Commit e122070

Browse files
committed
Add test for skew-normalizing matrix which is not skew
1 parent 1f7f447 commit e122070

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/sage/combinat/matrices/hadamard_matrix.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,13 @@ def normalise_hadamard(H, skew=False):
9090
sage: H = normalise_hadamard(skew_hadamard_matrix(20, skew_normalize=False), skew=True)
9191
sage: is_hadamard_matrix(H, skew=True, normalized=True)
9292
True
93+
94+
If ``skew`` is True but the Hadamard matrix is not skew, the matrix returned
95+
will not be normalized::
96+
97+
sage: H = normalise_hadamard(hadamard_matrix(92), skew=True)
98+
sage: is_hadamard_matrix(H, normalized=True)
99+
False
93100
"""
94101

95102
if skew:

0 commit comments

Comments
 (0)