NLA-lib Explorer

NLAlib.CGS2.cgs2ExtendRoutine_meets_exact

Library · theorem

Exact arithmetic

Exact column-wise two-pass classical Gram–Schmidt satisfies the exact contract of a basis extension. Under exact scalar arithmetic, exact level-1 operations at every length and exact comparisons, the implementation with the deflation threshold 0 runs on all admitted operands of NLAlib.Ops.OrthOp.extend and the decoded basis \mathbf{Q}, block \mathbf{W}, new block \mathbf{Q}' and coefficients \mathbf{H}, \mathbf{R} satisfy NLAlib.IsBasisExtension. The stored basis is arbitrary: it may have zero columns and need not be orthonormal on its support.

NLAlib.CGS2.cgs2ExtendRoutine_meets_exact {K Op Tst : Type} [Inhabited K] [Ops.Has Ops.ScalarOp Op]
  [Ops.Has Ops.Blas1Op Op] [Ops.Has Ops.CmpTst Tst] {M : Ops.Machine K} {dec : K → ℝ}
  {okB : ℕ → Prop} {I : Ops.Interp Op Tst K} (hS : Ops.IsScalar M I) (hM : Ops.ExactModel dec M)
  (hB : Ops.IsExactBlas1 dec okB I) (hok : ∀ (n : ℕ), okB n) (hCmp : Ops.IsCmp dec I) :
  (CGS2.cgs2ExtendRoutine 0).Meets I (Ops.exactExtendSpec dec)

Full source on GitHub

Import NLAlib.Krylov.Orthogonalization.CGS2.ExtendExact.