spyrit.misc.walsh_hadamard.walsh_G_matrix

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

Return Walsh-ordered Hadamard S-matrix of order n

Args:

n (int): Matrix order. n+1 should be a power of two. H (np.ndarray, optional):

Returns:

np.ndarray: n-by-n array

Examples:

Walsh-ordered Hadamard G-matrix of order 7

>>> print(walsh_G_matrix(7))