NLA-lib Explorer

NLAlib.setSubBlock

Library · def

The matrix \mathbf{A} with the diagonal block of the range r = (lo, d) replaced by \mathbf{B}: entries with both indices in [lo, lo + d) from \mathbf{B}, the others from \mathbf{A}.

NLAlib.setSubBlock {n : ℕ} (A : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ) (r : ℕ × ℕ)
  (B : Matrix (Fin r.2) (Fin r.2) ℂ) : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ

Full source on GitHub

Import NLAlib.Matrix.QRIteration.HessenbergDeflation.