NLA-lib Explorer

NLAlib.ShiftedQR.clearRowSolveFlag_writes

Library · theorem

Exact arithmetic

Clearing the report writes one actual word and does not consume tape. A fragment of the exact decoupler NLAlib.ShiftedQR.scalarDecouple, which exact shifted QR (NLAlib.ShiftedQR.deflationRoutine) takes as its decoupler.

NLAlib.ShiftedQR.clearRowSolveFlag_writes {Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
  {M : Ops.Machine ℝ} {I : Ops.Interp Op Tst ℝ} (hS : Ops.IsScalar M I) (hE : Ops.ExactModel id M)
  {τ : Ops.Tape ℝ} {m : Ops.Mem ℝ} {f : ℕ × ℕ} (hf : f.2 + 1 ≤ m.store.len f.1) :
  Ops.Writes Ops.Mode.total I τ ShiftedQR.clearRowSolveFlag (Ops.Env.frame [] [f, f])
    (Ops.Store.inBlock f.1 f.2 1) (fun m' ↦ m'.pos = m.pos ∧ m'.store.get f.1 f.2 = some 0) m

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RowSolveCore.