spectra
« Back to VersTracker
Description:
Header-only C++ library for large scale eigenvalue problems
Type: Formula  |  Latest Version: 1.2.0@0  |  Tracked Since: Nov 2, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c++ eigenvalue linear-algebra scientific-computing header-only
Install: brew install spectra
About:
Spectra is a header-only C++ library for solving large scale eigenvalue problems. It provides efficient iterative algorithms like Arnoldi and Lanczos methods, built on top of the Eigen library. This enables high-performance computation of a subset of eigenvalues and eigenvectors for sparse matrices.
Key Features:
  • Header-only library (no compilation required)
  • Efficient iterative algorithms (Arnoldi, Lanczos)
  • Seamless integration with Eigen library
  • Computes partial eigenvalue spectra
  • Supports both symmetric and non-symmetric matrices
Use Cases:
  • Scientific computing and numerical analysis
  • Principal component analysis (PCA) in machine learning
  • Physics simulations involving quantum mechanics or structural analysis
  • Dimensionality reduction algorithms
Alternatives:
  • ARPACK – ARPACK is the underlying Fortran library Spectra can use, but Spectra provides a modern C++ interface and is header-only.
  • Eigen – Eigen provides dense matrix operations and basic solvers, while Spectra specializes in large-scale sparse eigenvalue problems.
Version History
Detected Version Rev Change Commit
Nov 2, 2025 6:42am 0 VERSION_BUMP 83a8eb47