magic (version 1.5-9)

hadamard: Hadamard matrices

Description

Various functionality for Hadamard matrices

Usage

sylvester(k)
is.hadamard(m)

Arguments

k

Function sylvester() gives the k-th Sylvester matrix

m

matrix

Details

A Hadamard matrix is a square matrix whose entries are either +1 or -1 and whose rows are mutually orthogonal.

References

“Hadamard matrix.” Wikipedia, The Free Encyclopedia. 19 Jan 2009, 18:21 UTC. 20 Jan 2009

Examples

Run this code
# NOT RUN {
is.hadamard(sylvester(4))
image(sylvester(5))

# }

Run the code above in your browser using DataCamp Workspace