Important
The functions provided by this package have been merged into Hadamard.jl.
This package provides the function for the generation of the Walsh matrix.
To install this package, open the Julia REPL and run
julia> ]add Walshor
julia> using Pkg
julia> Pkg.add("Walsh")Import the package first.
julia> using WalshTo generate the walsh function with argument n.
julia> walsh(8)
8×8 Matrix{Int8}:
1 1 1 1 1 1 1 1
1 1 1 1 -1 -1 -1 -1
1 1 -1 -1 -1 -1 1 1
1 1 -1 -1 1 1 -1 -1
1 -1 -1 1 1 -1 -1 1
1 -1 -1 1 -1 1 1 -1
1 -1 1 -1 -1 1 -1 1
1 -1 1 -1 1 -1 1 -1If n is not a power of 2, an error occurs.