spyrit.misc.walsh_hadamard.walsh2_S_matrixļ
- spyrit.misc.walsh_hadamard.walsh2_S_matrix(n)[source]ļ
Return Walsh S-matrix in ā2dā
- Args:
n (int): Order of the matrix. n must be a power of two.
- Returns:
S (np.ndarray): (n*n-1)-by-(n*n-1) matrix
- Example:
>>> from spyrit.misc.walsh_hadamard import walsh2_S_matrix >>> S = walsh2_S_matrix(4) >>> print(S.shape) (15, 15)