paley {survey} | R Documentation |
Computes a Hadamard matrix of dimension p+1, where p is a prime,
and p+1 is a multiple of 4, using the Paley construction. Works
for n
up to 1367.
paley(n, nmax = 2 * n)
n |
Minimum size for matrix |
nmax |
Maximum size for matrix |
A matrix of zeros and ones, or NULL
if no matrix smaller than
nmax
can be found.
p<-paley(11) p1<-2*p-1 ## HH^T is diagonal for any Hadamard matrix p1%*%t(p1)