Walsh.jl

Author syoshida1983
Popularity
0 Stars
Updated Last
3 Months Ago
Started In
June 2024

Important

The functions provided by this package have been merged into Hadamard.jl.

Walsh

Stable Dev Build Status

This package provides the function for the generation of the Walsh matrix.

Installation

To install this package, open the Julia REPL and run

julia> ]add Walsh

or

julia> using Pkg
julia> Pkg.add("Walsh")

Usage

Import the package first.

julia> using Walsh

To generate the $n\times n$ Walsh matrix, call 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.

Used By Packages

No packages found.