NLA-lib Explorer

NLAlib.Ops.StdModel.norm_mulVec_sub_rowWord_le

Library · theorem

Standard rounding

Under nonnegative standard scalar roundoff, the actual stored dense scalar output has Euclidean error at most ((1+u)^{2n}-1)\sqrt{n}\|\mathbf{A}\|_2\|\mathbf{x}\|. The matrix and vector are the raw stored inputs; no accuracy property of a matvec primitive or assumption of successful execution is required. [Higham2002, §3.5].

NLAlib.Ops.StdModel.norm_mulVec_sub_rowWord_le {M : Ops.Machine ℝ} {u : ℝ}
  (hM : Ops.StdModel u id M) (hu : 0 ≤ u) (m n : ℕ) (raw xs : List ℝ) :
  ‖WithLp.toLp 2
        (Ops.StoredOperator.denseMatrix m n raw *ᵥ Ops.decv id n xs -
          Ops.decv id m (List.map (Ops.StoredDense.rowWord M m n raw xs) (List.range m)))‖ ≤
    Ops.ScalarProducts.roundoff u n * √↑n * specNorm (Ops.StoredOperator.denseMatrix m n raw) *
      ‖WithLp.toLp 2 (Ops.decv id n xs)‖

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.StoredDense.