NLA-lib Explorer

NLAlib.CGS2.submatrix_fromCols_colsBefore

Library · theorem

The stored block of round c, decoded. For basis words qs of k columns of length n and new columns qn, the first k + c stored columns decode to the stored columns of [\mathbf{Q}, \mathbf{Q}'_{<c}], where \mathbf{Q}'_{<c} is \mathbf{Q}' with the columns from c on replaced by zero.

NLAlib.CGS2.submatrix_fromCols_colsBefore {K : Type} [Inhabited K] {dec : K → ℝ} {n k b : ℕ}
  {qs qn : List K} (hqs : qs.length = k * n) (c : Fin b) :
  ((Ops.decodeMatrix dec n k qs).fromCols (colsBefore (Ops.decodeMatrix dec n b qn) c)).submatrix id
      (CGS2.storedCol k b ↑c ⋯) =
    Ops.decodeMatrix dec n (k + ↑c) (List.take ((k + ↑c) * n) (qs ++ qn))

Full source on GitHub

Import NLAlib.Krylov.Orthogonalization.CGS2.ExtendDecode.