Skip to main content
QUICK REVIEW

[Paper Review] NEP-PACK: A Julia package for nonlinear eigenproblems - v0.2

Elias Jarlebring, Max Bennedich|arXiv (Cornell University)|Nov 23, 2018
Matrix Theory and AlgorithmsComputer Science25 references6 citations
TL;DR

NEP-PACK is a high-performance, open-source Julia package for solving nonlinear eigenvalue problems (NEPs), offering efficient implementations of state-of-the-art algorithms like NLEIGS and infinite Arnoldi. It supports diverse NEP structures through flexible interfaces, outperforms MATLAB counterparts in speed and memory use, and enables algorithm comparison and development via extensible, well-documented components for both application users and researchers.

ABSTRACT

We present NEP-PACK a novel open-source library for the solution of nonlinear eigenvalue problems (NEPs). The package provides a framework to represent NEPs, as well as efficient implementations of many state-of-the-art algorithms. The package makes full use of the efficiency of Julia, yet maintains usability, and integrates well with other software packages. The package is designed to be easy to use for application researchers as well as algorithm developers. Particular attention is paid to algorithm neutrality, in order to make performance comparisons between algorithms easier. This paper describes the main functionality of NEP-PACK, as well as design decisions and theory needed for the design.

Motivation & Objective

  • Address the need for efficient, robust, and extensible software for solving nonlinear eigenvalue problems (NEPs) across diverse scientific domains.
  • Provide a unified, user-friendly framework that supports both application researchers and algorithm developers in solving and comparing NEP solvers.
  • Enable algorithm neutrality to simplify performance comparisons between different NEP solvers and promote reproducibility.
  • Leverage Julia’s performance and high-level syntax to deliver high-efficiency numerical computation while maintaining usability.
  • Support a broad class of NEPs, including those with rational, exponential, and sum-of-products structures, via extensible interfaces beyond the standard form.

Proposed method

  • Implement NEPs using a flexible interface system that supports various representations, including sum-of-products forms (M(λ) = A₁f₁(λ) + ... + Aₘfₘ(λ)) and custom function-based definitions.
  • Provide native support for specialized NEP types such as delay eigenvalue problems (DEPs), rational NEPs, and problems with exponential or square-root nonlinearities.
  • Integrate high-performance algorithms like NLEIGS and infinite Arnoldi (infinite GMRES variant) with full documentation and references to original works.
  • Use Julia’s Just-In-Time (JIT) compilation and efficient sparse matrix handling to accelerate inner loops and orthogonalization steps critical for Krylov methods.
  • Introduce the DerSPMF type to precompute and cache derivatives at specific points, significantly improving performance for methods requiring frequent derivative evaluations.
  • Ensure interoperability with other Julia packages and provide a public GitHub repository and comprehensive documentation for community engagement and extensibility.

Experimental results

Research questions

  • RQ1How can a general-purpose, high-performance software package be designed to support diverse nonlinear eigenvalue problems while enabling fair algorithm comparison?
  • RQ2To what extent can Julia’s performance characteristics outperform traditional languages like MATLAB in solving large-scale NEPs, especially in iterative eigensolvers?
  • RQ3How can derivative computation overhead be reduced in iterative NEP solvers without sacrificing algorithmic generality?
  • RQ4Can a modular, extensible framework be built that supports both application-level NEP solving and low-level algorithm development?
  • RQ5What performance gains are achievable through Julia’s type system and JIT compilation in NEP-specific numerical kernels?

Key findings

  • The NEP-PACK implementation of NLEIGS in Julia achieved a median CPU time of 3.9–12.7 seconds across six test problems, outperforming the MATLAB version, which took 5.2–20.1 seconds, with up to 40% faster execution.
  • Memory usage in NEP-PACK was significantly reduced—down to 59 MB compared to 420 MB in MATLAB—demonstrating superior memory efficiency, especially in large-scale problems.
  • For a 200-term exponential NEP, the infinite Arnoldi method took 7.568 seconds without derivative precomputation, but only 3.365 seconds with DerSPMF precomputation, showing a 55% performance improvement.
  • The DerSPMF type successfully precomputed derivatives at a target point, reducing memory allocations from 3.88 GiB to 1.07 GiB and accelerating convergence in iterative solvers.
  • The package demonstrated robustness and scalability on HPC environments at KTH, with plans to report further large-scale benchmarks in future versions.
  • The framework enables seamless integration of new NEP types and solvers through well-defined interfaces, promoting extensibility and community contributions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.