spyrit.misc.walsh_hadamard.walsh_S_matrix

spyrit.misc.walsh_hadamard.walsh_S_matrix(n, H=None)[source]

Return Walsh S-matrix of order n

Args:

n (int): Matrix order. n+1 should be a power of two.

Returns:

np.ndarray: n-by-n array

Examples:

Walsh-ordered Hadamard S-matrix of order 7

>>> print(walsh_S_matrix(7))