NLA-lib Explorer

NLAlib.mul_selectionMatrix

Library · theorem

Right multiplication by a selection matrix selects columns: column j of \mathbf{A}\mathbf{S} is column s(j) of \mathbf{A}.

NLAlib.mul_selectionMatrix.{u_1, u_2, u_3, u_4} {𝕜 : Type u_1} [RCLike 𝕜] {m : Type u_2}
  {n : Type u_3} {p : Type u_4} [DecidableEq n] [Fintype n] (A : Matrix m n 𝕜) (s : p → n) :
  A * selectionMatrix s = A.submatrix id s

Full source on GitHub

Import NLAlib.Matrix.Basic.Selection.