spyrit.misc.walsh_hadamard.sequency_perm_ind

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

Return permutation indices to get sequency from the natural order

Args:

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

Returns:

list:

Examples:

Permutation indices to get a Walsh matrix of order 8

>>> print(sequency_perm_ind(8))
[0, 4, 6, 2, 3, 7, 5, 1]