Relative Frobenius error against rank for Gaussian rSVD, SRHT-rSVD, sparse sign rSVD and randQB_EI on a 13,514 by 13,514 kernel matrix, with the exact SVD as the lower bound

Randomized Low-Rank Approximation of Boundary-Integral Kernel Matrices

Four randomized low-rank approximation methods written from scratch in Python and compared on boundary integral kernel matrices. Once its transform ran inside the cache, the SRHT sketch beat a BLAS matrix multiply, but the full algorithm only won at large rank.

Grayscale photo of Milan Cathedral reconstructed with SVD at ranks 250, 100, 50, 20 and 5, next to the original; detail fades into vertical streaks as the rank drops

Image Compression with Singular Value Decomposition (SVD)

Singular Value Decomposition (SVD) is a fundamental algorithm in numerical linear algebra. In this post, I will show how to factorize a matrix and use low-rank approximation to compress a high-resolution image, using Python. The Mathematics of SVD Every real matrix $A$ of dimensions $m \times n$ can be factored into three matrix: $$A = U \Sigma V^T$$ Where: $U$ is an $m \times m$ orthogonal matrix of left singular vectors. $\Sigma$ is an $m \times n$ diagonal matrix containing the singular values ($\sigma_i$) in descending order. $V^T$ is an $n \times n$ orthogonal matrix of right singular vectors. By keeping only the largest $k$ singular values (where $k < \text{rank}(A)$), we can form a truncated approximation $A_k$ that captures the maximum possible “energy” (or variance) of original matrix: ...

December 18, 2025