spyrit.misc.walsh_hadamard.walsh_matrix

spyrit.misc.walsh_hadamard.walsh_matrix(n)[source]

Return 1D Walsh-ordered Hadamard transform matrix

Args:

n (int): Order of the matrix, a power of two.

Returns:

np.ndarray: A n-by-n array

Examples:

Walsh-ordered Hadamard matrix of order 8

>>> print(walsh_matrix(8))