NLAlib.ShiftedQR.squareRoots_writes
Library · theorem
Exact arithmetic
The actual in-place scalar loop returns the iterated mathematical square root. Its initial word is nonnegative, so every executed root meets the exact model's numerical domain. Shared by the trees of NLAlib.ShiftedQR.scalarDecouple, NLAlib.ShiftedQR.shqrSmallEigRoutine and NLAlib.SmallEig.smallEigRoutine, on their scratch.
NLAlib.ShiftedQR.squareRoots_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 ℝ} {k : ℕ} {x : ℕ × ℕ} {v : ℝ} (hx : m.store.get x.1 x.2 = some v) (hv : 0 ≤ v) :
Ops.Writes Ops.Mode.total I τ ShiftedQR.squareRoots (Ops.Env.frame [k] [x, x])
(Ops.Store.inBlock x.1 x.2 1)
(fun m' ↦ m'.pos = m.pos ∧ m'.store.get x.1 x.2 = some (Real.sqrt^[k] v)) mImport NLAlib.Eigensolvers.ShiftedQR.Radius.