NLA-lib Explorer

NLAlib.Computation.IsDotTrace

Library · def

A trace of recursive accumulation of \sum_{k<n} \mathbf{x}_k y_k under the error relation err: s_0 = 0 and, for each k < n, a product q_k related by err to \mathbf{x}_k y_k and s_{k+1} related by err to s_k + q_k, equal to q_k when s_k = 0 (adding zero is exact). This is what dot computes, and what gemv computes in each entry.

NLAlib.Computation.IsDotTrace (err : Computation.BinOp → ℝ → ℝ → Prop) (x y : ℕ → ℝ) (n : ℕ)
  (s : ℕ → ℝ) : Prop

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.Traces.