Square matrix whose entries are either +1 or -1 and whose rows are mutually orthogonal.
This means that each pair of rows represents two perpendicular vectors. The easier construction comes from the square Sylvester construction. Starting from the fundamental matrix :
The partitioned matrix is, if is a Hadamard matrix of order is:
So, for :
To generate each successively higher-order matrix, repeat the substitution with the previous order matrix. The general rule boils down to this formula:
where is the Kronecker product.
See also
- The Hadamard Transform y = Hβx Transforms 2α΅ Numbers Using Only Additions and Subtractions β the matrix is what defines the transform; the recursive structure is why the Fast Hadamard Transform achieves O(n log n)
- Linear Recursion is a chain of deferred operations β Sylvesterβs construction is a recursive process: is defined entirely in terms of , with base case
- h(x) = g(f(x)) β Composing Functions With β and Its Reverse β the Kronecker product is function composition at the matrix level: the transform of order is the composition of the order-2 transform with the order transform
- Cosine Similarity is the cosine of the angle between two vectors β mutual orthogonality of rows means each pair has cosine similarity 0; the Hadamard matrix is a basis of maximally uncorrelated directions