HackerPapers

arXiv:2403.04390math.NA

A low-memory Lanczos method with rational Krylov compression for matrix functions

Angelo A. Casulli, Igor Simunec

Early discovery. Linked by one identifiable commenter. This paper is outside the main ranking; a mention is not an endorsement.

Abstract

In this work we introduce a memory-efficient method for computing the action of a Hermitian matrix function on a vector. Our method consists of a rational Lanczos algorithm combined with a basis compression procedure based on rational Krylov subspaces that only involve small matrices. The cost of the compression procedure is negligible with respect to the cost of the Lanczos algorithm. This enables us to avoid storing the whole Krylov basis, leading to substantial reductions in memory requirements. This method is particularly effective when the rational Lanczos algorithm needs a significant number of iterations to converge and each iteration involves a low computational effort. This scenario often occurs when polynomial Lanczos, as well as extended and shift-and-invert Lanczos are employed. Theoretical results prove that, for a wide variety of functions, the proposed algorithm differs from rational Lanczos by an error term that is usually negligible. The algorithm is compared with other low-memory Krylov methods from the literature on a variety of test problems, showing competitive performance.

arXiv comments
26 pages, 3 figures, 4 tables
Journal reference
DOI
Subjects
math.NANumerical Analysis

On Hacker News

Linked by 1 identifiable commenter in 2 comments across 1 thread, from Nov 2025 to Nov 2025.

Comments linking this paper, per year.

Discussed in comments1 thread

    • Sorry for the late answer. The blog post is a simplification of the actual work; you can check out the full report here [1], where I also reference the literature about this algorithm. On the cache effects: I haven't seen this "engineering" argument made explicitly in the…

      lukefleedView on HNParent context

    • That's an interesting question. I don't have too much experience, but here's my two cents. For matrix function approximations, loss of orthogonality matters less than for eigenvalue computations. The three-term recurrence maintains local orthogonality reasonably well for…

      lukefleedView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.