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 Walsh
or
julia> using Pkg
julia> Pkg.add("Walsh")
Import the package first.
julia> using Walsh
To 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 -1
If n
is not a power of 2, an error occurs.