NLA-lib Explorer

NLAlib.SpectralBisection.bisectionAlgorithm

Library · def

Uniform model Work: program manifest

The transparent syntactic manifest, with work/span and memory evaluated on that same manifest and profile, has a canonical certificate for every admitted raw input and tape.

NLAlib.SpectralBisection.bisectionAlgorithm {K : Type} [Inhabited K] (M : Ops.Machine K)
  (dec : K → ℝ) (mm : MatMulMap (K × K)) (qr : QRMap (K × K)) (domain : (Fin 3 → ℕ) → Prop)
  (admitted : ∃ d, domain d) (matrixWork matrixWorkspace : Ops.MatrixOp → List ℕ → ℕ)
  (hLit : ∀ (d : Fin 3 → ℕ), domain d → Ops.IsExactNatLit dec M (max (d 0) 4)) :
  Ops.Algorithm
    (Ops.Dense.functionalModel (SpectralBisection.problem domain admitted) M dec
      (Ops.EntryCodec.pair K) (fun {l m n} ↦ mm) (fun {m n} ↦ qr)
      (Ops.Dense.resources matrixWork matrixWorkspace))
    (SpectralBisection.manifestSpecification M dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) domain
      admitted matrixWork matrixWorkspace)

Full source on GitHub

Import NLAlib.Eigensolvers.SpectralBisection.Certification.