spyrit.misc.walsh_hadamard.walsh2_matrix

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

Return Walsh-ordered Hadamard matrix in 2D

Args:

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

Returns:

H (np.ndarray): A n*n-by-n*n matrix