spyrit.misc.walsh_hadamard.iwalsh_S_matrix

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

Return inverse 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

Example 1:

Inverse of the Walsh S-matrix of order 7

>>> print(iwalsh_S_matrix(7))
Example 2:

Check the inverse of the Walsh S-matrix of order 7 >>> print(iwalsh_S_matrix(7) @ walsh_S_matrix(7))