NLA-lib Explorer

NLAlib.truncate_givens_mulVec

Library · theorem

A rotation that zeros coordinate j of \mathbf{x} moves the truncation point by one: the first j + 1 coordinates of \mathbf{G}_j \mathbf{x} are the first j coordinates of \mathbf{x} and a zero.

NLAlib.truncate_givens_mulVec {n : ℕ} (j : Fin n) (x : Fin (n + 1) → ℂ) :
  (fun i ↦
      if ↑i < ↑j + 1 then
        (givens j.castSucc j.succ (givensCoeffs (star (x j.succ)) (-star (x j.castSucc))).1
              (givensCoeffs (star (x j.succ)) (-star (x j.castSucc))).2 *ᵥ
            x)
          i
      else 0) =
    fun i ↦ if ↑i < ↑j then x i else 0

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.GivensChain.