NLA-lib Explorer

NLAlib.selectionMatrix_mulVec

Library · theorem

A selection matrix acts on a vector by scattering its entries: \mathbf{S}\mathbf{x} = \sum_j \mathbf{x}_j \mathbf{e}_{s(j)}, spelled as a sum of Pi.single.

NLAlib.selectionMatrix_mulVec.{u_1, u_3, u_4} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_3}
  {p : Type u_4} [DecidableEq n] [Fintype p] (s : p → n) (x : p → 𝕜) :
  selectionMatrix s *ᵥ x = ∑ j, Pi.single (s j) (x j)

Full source on GitHub

Import NLAlib.Matrix.Basic.Selection.