spyrit.misc.walsh_hadamard

Walsh-ordered Hadamard tranforms.

Longer description of this module.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Functions

b2_to_b10(l)

Convert a list of numbers in base 2 to base 10

bit_reverse_traverse(a)

bit_reversed_list(n)

bit_reversed_matrix(n)

fwalsh2_S(X[, ind])

Fast Walsh S-transform of X in "2D"

fwalsh2_S_torch(X[, ind])

Fast Walsh S-transform of X in "2D"

fwalsh_G(x[, ind])

Fast Walsh G-transform of the signal x

fwalsh_G_torch(x[, ind])

Fast Walsh G-transform of x

fwalsh_S(x[, ind])

Fast Walsh S-transform of x

fwalsh_S_torch(x[, ind])

Fast Walsh S-transform of x

fwht(x[, order])

Fast Walsh-Hadamard transform of x.

fwht_torch(x[, order])

Deprecated function.

get_bit_reversed_list(l)

gray_code_list(n)

gray_code_permutation(n)

ifwalsh2_S(Y[, ind])

Inverse Fast Walsh S-transform of Y in "2D"

ifwalsh_S(s[, ind])

Inverse fast Walsh S-transform of s

ifwalsh_S_torch(s[, ind])

Inverse Fast Walsh S-transform of x

iwalsh2(X[, H])

Return 2D inverse Walsh-ordered Hadamard transform of an image

iwalsh2_S(Y[, T])

Inverse Fast Walsh S-transform of Y in "2D"

iwalsh_S(s[, T])

Return the inverse Walsh S-transform of the signal x

iwalsh_S_matrix(n[, H])

Return the inverse Walsh S-matrix of order n.

perm_matrix_from_ind(l)

sequency_perm(X[, ind])

Permute the last dimension of a tensor.

sequency_perm_ind(n)

Return permutation indices to get sequency from the natural order

sequency_perm_matrix(n)

Return permutation matrix to get sequency from the natural order

walsh2(X[, H])

Return 2D Walsh-ordered Hadamard transform of an image \(H^\top X H\)

walsh2_S(X[, S])

Fast Walsh S-transform of X in "2D"

walsh2_S_fold(x)

Fold a signal to get a "2d" s-transformed representation

walsh2_S_fold_torch(x)

Fold a signal to get a "2d" s-transformed representation

walsh2_S_matrix(n)

Return Walsh S-matrix in "2d"

walsh2_S_unfold(X)

Unfold a signal from a "2d" s-transformed representation

walsh2_S_unfold_torch(X)

Unfold a signal from a "2d" s-transformed representation

walsh2_torch(im[, H])

Deprecated function.

walsh_G(x[, G])

Return the Walsh G-transform of the signal x

walsh_G_matrix(n[, H])

Return Walsh-ordered Hadamard G-matrix of order n

walsh_S(x[, S])

Return the Walsh S-transform of the signal x

walsh_S_matrix(n[, H])

Return Walsh-ordered Hadamard S-matrix of order n

walsh_matrix(n)

Return 1D Walsh-ordered Hadamard transform matrix

walsh_matrix_2d(n)

Return Walsh-ordered Hadamard matrix in 2D

walsh_torch(x[, H])

Deprecated function.