SylvesterMat( n )
SylvesterMat returns the n by n Sylvester matrix of order n. This
is a special case of the Hadamard matrices (see HadamardMat). For this
construction, n must be a power of 2. Each call to SylvesterMat
returns a new matrix, so it is safe to modify the result.
gap> PrintArray(SylvesterMat(2));
[ [ 1, 1 ],
[ 1, -1 ] ]
gap> PrintArray( SylvesterMat(4) );
[ [ 1, 1, 1, 1 ],
[ 1, -1, 1, -1 ],
[ 1, 1, -1, -1 ],
[ 1, -1, -1, 1 ] ]
GAP 3.4.4