HODLRdD: A new Black-box fast algorithm for N-body problems in d-dimensions with guaranteed error bounds

Ritesh Khan, V A Kandappan, Sivaram Ambikasaran
9/13/2022
math.NAmath-ph

Official code: SAFRAN-LAB/HODLRdD (0 stars, C++, last commit 2025-11-04).

Abstract

In this article, we prove new theorems bounding the rank of different sub-matrices arising from these kernel functions. Bounds like these are often useful for analyzing the complexity of various hierarchical matrix algorithms.

Show full abstract

We also plot the numerical rank growth of different sub-matrices arising out of various kernel functions in $1$D, $2$D, $3$D and $4$D, which, not surprisingly, agrees with the proposed theorems. Another significant contribution of this article is that, using the obtained rank bounds, we also propose a way to extend the notion of \textbf{\emph{weak-admissibility}} for hierarchical matrices in higher dimensions. Based on this proposed \textbf{\emph{weak-admissibility}} condition, we develop a black-box (kernel-independent) fast algorithm for $N$-body problems, hierarchically off-diagonal low-rank matrix in $d$ dimensions (HODLR$d$D), which can perform matrix-vector products with $\mathcal{O}(pN \log (N))$ complexity in any dimension $d$, where $p$ doesn't grow with any power of $N$. More precisely, our theorems guarantee that $p \in \mathcal{O} (\log (N) \log^d (\log (N)))$, which implies our HODLR$d$D algorithm scales almost linearly. The $\texttt{C++}$ implementation with \texttt{OpenMP} parallelization of the HODLR$d$D is available at \url{https://github.com/SAFRAN-LAB/HODLRdD}. We also discuss the scalability of the HODLR$d$D algorithm and showcase the applicability by solving an integral equation in $4$ dimensions and accelerating the training phase of the support vector machines (SVM) for the data sets with four and five features.

View on arXivView PDF

Code Implementations(1)

SAFRAN-LAB/HODLRdDOfficial100%

An almost linear complexity algorithm for 'd' dimensional matrix-vector product.

01C++, MATLABMay 17, 20231 years ago

Similar Papers

Cite this paper

@article{khan2022hodlrdd,
  title  = {HODLRdD: A new Black-box fast algorithm for N-body problems in d-dimensions with guaranteed error bounds},
  author = {Ritesh Khan and V A Kandappan and Sivaram Ambikasaran},
  year   = {2022},
  eprint = {2209.05819},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.05819}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2209.05819.svg)](https://codeofpaper.com/paper/2209.05819)

Discussion