NLAlib.Ops.IsDotErr.pos_of_margin
Library · theorem
The computed dot product is positive when its absolute error allowance is smaller than the exact decoded dot product.
NLAlib.Ops.IsDotErr.pos_of_margin {K : Type} [Inhabited K] {dec : K → ℝ} {n : ℕ} {e : ℝ}
{xs ys : List K} {v : K} (h : Ops.IsDotErr dec e n (Ops.vec xs) (Ops.vec ys) v)
(hm :
e * ∑ i, |Ops.decv dec n xs i * Ops.decv dec n ys i| < Ops.decv dec n xs ⬝ᵥ Ops.decv dec n ys) :
0 < dec vImport NLAlib.Ops.Blas.Decoded.