pub fn hadamard(n: usize) -> Result<Array2<f64>>
The n × n Hadamard matrix of ±1 entries by Sylvester’s construction (SciPy’s hadamard); n must be a power of two. Its rows are orthogonal: H Hᵀ = n I.
n × n
hadamard
n
H Hᵀ = n I