NLAlib.ShiftedQR.vectorNormSquared_writes
Library · theorem
Exact arithmetic
The existing real-word norm lowering and one multiplication return the squared complex Euclidean norm. The supplied scratch view is separate from the vector. A fragment of the exact decoupler NLAlib.ShiftedQR.scalarDecouple, which exact shifted QR (NLAlib.ShiftedQR.deflationRoutine) takes as its decoupler.
NLAlib.ShiftedQR.vectorNormSquared_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 ℝ} {n : ℕ} {v t z : ℕ × ℕ} {w : Fin n → ℂ} (hl : m.Live [v, t, z])
(hV : ShiftedQR.HoldsVector v w m.store) (htv : t.1 ≠ v.1) (ht : t.2 + 3 ≤ m.store.len t.1)
(hz : z.2 + 1 ≤ m.store.len z.1) :
Ops.Writes Ops.Mode.total I τ ShiftedQR.vectorNormSquared (Ops.Env.frame [n] [v, t, z])
(Ops.Store.inBlock t.1 t.2 3 ⊔ Ops.Store.inBlock z.1 z.2 1)
(fun μ ↦ μ.pos = m.pos ∧ μ.store.get z.1 z.2 = some (‖WithLp.toLp 2 w‖ ^ 2)) mImport NLAlib.Eigensolvers.ShiftedQR.RowSolveNorm.