Various functionality for Hadamard matrices
sylvester(k) is.hadamard(m)
Function sylvester() gives the k-th Sylvester matrix
sylvester()
k
matrix
A Hadamard matrix is a square matrix whose entries are either +1 or -1 and whose rows are mutually orthogonal.
“Hadamard matrix.” Wikipedia, The Free Encyclopedia. 19 Jan 2009, 18:21 UTC. 20 Jan 2009
# NOT RUN { is.hadamard(sylvester(4)) image(sylvester(5)) # }
Run the code above in your browser using DataCamp Workspace