spyrit.core.torch.ifwht
- spyrit.core.torch.ifwht(x, order=True, dim=-1)[source]
Inverse fast Walsh-Hadamard transform of x
- Args:
x (torch.tensor): *-by-n input signal, where n is a power of two.
order (bool, optional): True for sequency (default), False for natural. If a list, it defines the permutation indices to use. Default is True.
dim (int, optional): The dimension along which to apply the transform. Default is -1.
- Returns:
torch.tensor: *-by-n transformed signal