FHADAMARDMATRIX procedure
Forms Hadamard matrices (R.W. Payne).
Options
Parameters
Description
A Hadamard matrix is a matrix containing values -1 and +1 whose rows are orthogonal: i.e. if H is a Hadamard matrix
H *+ T(H) = n * IDENTITY(n)
where n is the number of rows of H, which must be 2 or a multiple of 4.
FHADAMARDMATRIX provides several methods for forming the matrices, described in Hedayat, Sloane & Stufken (1999, Chapter 7). These work for all sizes of matrix up to 200, and various other sizes above that. The METHOD option can be used to specify the method. If this is unset FHADAMARDMATRIX selects an appropriate method automatically (you may then want to set the PRINT option to monitoring to record what method has been used). The settings of METHOD, in the order in which they will be selected, are as follows.
The number of rows of the matrix is specified by the NROWS parameter, the HADAMARDMATRIX parameter saves the matrix, and the ERROR parameter can be set to a scalar which returns zero if the matrix has been formed successfully and one if not.
Options: PRINT, METHOD.
Parameters: NROWS, HADAMARDMATRIX, ERROR.
Method
The methods are described in Chapter 7 of Hedayat, Sloane & Stufken (1999).
Reference
Hedayat, A.S., Sloane, N.J.A., & Stufken, J. (1999). Orthogonal Arrays, Theory & Applications. Springer-Verlag, New York.