NLA-lib Explorer

NLAlib.Ops.dotProduct_decv

Library · theorem

The dot product of decoded blocks is the sum over their natural indices.

NLAlib.Ops.dotProduct_decv {K : Type} [Inhabited K] {dec : K → ℝ} {n : ℕ} (xs ys : List K) :
  Ops.decv dec n xs ⬝ᵥ Ops.decv dec n ys =
    ∑ i ∈ Finset.range n, dec (Ops.vec xs i) * dec (Ops.vec ys i)

Full source on GitHub

Import NLAlib.Ops.Blas.Decoded.