Skip to main content

hadamard

Function hadamard 

Source
pub fn hadamard(n: usize) -> Result<Array2<f64>>
Expand description

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.