spyrit.misc.walsh_hadamard.walsh_matrix_2d

spyrit.misc.walsh_hadamard.walsh_matrix_2d(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