Pseudospectra Certification

This page describes the drivers of the CertifScripts module, which bound the resolvent of a matrix on a circle of the complex plane.

Overview

Every driver computes a Schur form A = ZTZ* with certified defects (compute_schur_and_error), refines adaptively a polygon inscribed in the circle until every side is accepted, encloses σ_min(T − zI) at each vertex, and returns a bound of ‖(zI − T)⁻¹‖₂ on the polygon (resolvent_schur) and its transfer to A (resolvent_original). The drivers differ in how the enclosure at a vertex is computed and in where the vertices are evaluated. The polygon bound is carried to the circle by circle_resolvent_bound.

Basic Usage

The main entry point is run_certification, which takes a matrix and a CertificationCircle defining the contour.

using CertifiedPseudospectra, LinearAlgebra
using CertifiedPseudospectra.CertifScripts

n = 20
A = diagm(0 => 0.5 .^ (0:(n - 1)), 1 => fill(0.1, n - 1))
circle = CertificationCircle(0.0, 0.75; samples = 64)
cert = run_certification(A, circle; log_io = devnull)
cert.resolvent_original     # ‖(zI − A)⁻¹‖₂ ≤ 9.904... on the polygon

The Schur data returned by compute_schur_and_error can be passed to any driver through the keyword schur_data, so that one decomposition serves several circles.

Execution Modes

Serial mode (Float64)

run_certification(A, circle) encloses the singular values of T − zI at each vertex with BallArithmetic's svdbox, in the precision of A.

Parallel mode (Distributed.jl)

Loading Distributed loads the extension, which adds methods of run_certification taking a third argument: a number of workers to start (and stop after the run), a WorkerPool, or a vector of worker ids.

using CertifiedPseudospectra, Distributed
using CertifiedPseudospectra.CertifScripts

addprocs(4)
result = run_certification(A, circle, workers())

The extension provides:

  • the worker loop dowork, fed through channels;
  • snapshots of a long run, written by save_snapshot! and chosen for resuming by choose_snapshot_to_load;
  • the keywords use_ogita_cache, use_bigfloat_ogita and use_parametric, which select on the workers the evaluators of the three modes below.

Ogita-refined mode

Consecutive vertices of the adaptive refinement are close to one another, and the singular value decomposition at one of them can be refined at the next by the iteration of Ogita and Aishima instead of being computed afresh. In the distributed driver, use_ogita_cache = true makes the workers (dowork_ogita) refine the decomposition of the previous point when it is within ogita_distance_threshold, falling back to a full decomposition when the refined one has relative residual above ogita_quality_threshold. The refined decomposition is then certified; the refinement changes the starting point of the certification, not what is certified.

BigFloat mode

run_certification_ogita promotes A to BigFloat at target_precision bits (256 by default), computes the Schur form in that precision, and at each vertex refines a singular value decomposition to that precision by Ogita's iteration before certifying it; the starting decomposition is the one of a nearby earlier vertex when there is one, and a Float64 decomposition otherwise. It is meant for circles on which the resolvent is too large for Float64 enclosures to bound σ_min(T − zI) away from zero. The distributed equivalent is use_bigfloat_ogita = true, with the worker dowork_ogita_bigfloat.

Parametric mode

run_certification_parametric splits the Schur factor as T = [T₁₁ T₁₂; 0 T₂₂] at the index k, computes once the similarity S(X) = [I X; 0 I] of sylvester_resolvent_precompute, and at each vertex evaluates parametric_resolvent_bound, whose certified singular value computation is on the k×k block zI − T₁₁ only. When the keyword k is not given, the Schur form is reordered (ordschur) so that its diagonal entries outside the circle come first, the defects of the reordered factorisation are recomputed, and k is the number of those entries. The keyword config chooses how the three terms of that bound are estimated, among the ResolventBoundConfig values

  • config_v1: ‖(zI − T₂₂)⁻¹‖₂ by triangular back substitution, and the coupling term as a product of norms; no approximate solve at z;
  • config_v2, the default of this driver: as config_v1, with the coupling term bounded through an approximate solve of size k at each z and its residual;
  • config_v2p5: as config_v1, with the whole off-diagonal block approximated and its residual enclosed, a solve on each side at each z;
  • config_v3: as config_v2, with ‖(zI − T₂₂)⁻¹‖₂ from the factorisation zI − T₂₂ = Δ(I + N), Δ diagonal, and a Neumann series where the Collatz bound of ‖N‖₂ is below one; back substitution elsewhere.

Each of them gives a valid bound, and compare_all_configs evaluates the four at one point on one precomputation and names the smallest. The split matters: on the 20×20 matrix of the example above, with the circle of radius 0.75, the default split is k = 1 (only the eigenvalue 1 lies outside the circle), and the run returned resolvent_original ≈ 20.67 with config_v1 and config_v2 and ≈ 26.09 with config_v3; with k = 2 it returned ≈ 21.39 and ≈ 22.36; run_certification returns 9.904. With k = 5 the similarity has κ(S(X)) ≤ 1.1e8 and the run did not complete in two minutes.

cert = run_certification_parametric(A, circle; config = config_v2(), log_io = devnull)
cert.k                      # 1
cert.resolvent_original     # ‖(zI − A)⁻¹‖₂ ≤ 20.67... on the polygon

The distributed equivalent is use_parametric = true, with the keywords parametric_k and parametric_config.

Helper Functions