Table of Contents
Fetching ...

Hadamard Row-Wise Generation Algorithm

Brayan Monroy, Jorge Bacca

TL;DR

This work tackles memory bottlenecks in Hadamard matrix use, notably in Hadamard single-pixel imaging, by enabling on-demand row generation rather than full-matrix precomputation. It leverages Sylvester's recursive construction and the Kronecker product to compute the i-th row from binary index digits without forming the entire matrix, via $i_{10}=(b_n\dots b_0)_2$ and $\mathbf{h}_i = \bigotimes_{k=n}^0 \mathbf{h}_{b_k}$. The paper derives and implements an iterative algorithm that builds $\mathbf{h}_i$ from the base $\mathbf{H}_2$ and analyzes the computational cost as $\mathcal{C}(n) = 2^{n+1}-2 \sim \mathcal{O}(2^n)$ multiplications, with the dominant term proportional to $2^n$. It also notes adaptability to different Hadamard orderings via index permutation and provides a GitHub implementation, enabling practical deployment in memory-constrained imaging systems.

Abstract

In this paper, we introduce an efficient algorithm for generating specific Hadamard rows, addressing the memory demands of pre-computing the entire matrix. Leveraging Sylvester's recursive construction, our method generates the required $i$-th row on demand, significantly reducing computational resources. The algorithm uses the Kronecker product to construct the desired row from the binary representation of the index, without creating the full matrix. This approach is particularly useful for single-pixel imaging systems that need only one row at a time.

Hadamard Row-Wise Generation Algorithm

TL;DR

This work tackles memory bottlenecks in Hadamard matrix use, notably in Hadamard single-pixel imaging, by enabling on-demand row generation rather than full-matrix precomputation. It leverages Sylvester's recursive construction and the Kronecker product to compute the i-th row from binary index digits without forming the entire matrix, via and . The paper derives and implements an iterative algorithm that builds from the base and analyzes the computational cost as multiplications, with the dominant term proportional to . It also notes adaptability to different Hadamard orderings via index permutation and provides a GitHub implementation, enabling practical deployment in memory-constrained imaging systems.

Abstract

In this paper, we introduce an efficient algorithm for generating specific Hadamard rows, addressing the memory demands of pre-computing the entire matrix. Leveraging Sylvester's recursive construction, our method generates the required -th row on demand, significantly reducing computational resources. The algorithm uses the Kronecker product to construct the desired row from the binary representation of the index, without creating the full matrix. This approach is particularly useful for single-pixel imaging systems that need only one row at a time.
Paper Structure (1 section, 3 equations, 1 figure, 1 algorithm)

This paper contains 1 section, 3 equations, 1 figure, 1 algorithm.

Table of Contents

  1. Method

Figures (1)

  • Figure 1: Hadamard Row-Wise Generation Algorithm. In the case of $\textbf{h}_6$, the 6-th index has a binary representation of $6_{10} = \textbf{0110}_2$. The digits in this binary representation can be used to index the Kronecker product of $n$, 2-order Hadamard matrices, where 0/1 corresponds to using the first or second row, respectively.