NLA-lib Explorer

NLAlib.Schur.holdsMatrix_one_of_holdsVec

Library · theorem

The stored identity: words that are 1 at the real parts of the diagonal entries and 0 elsewhere (the output of NLAlib.Ops.PairMatrix.identity with exact literals) hold the identity matrix.

NLAlib.Schur.holdsMatrix_one_of_holdsVec {N : ℕ} {s : Ops.Store ℝ} {b : ℕ × ℕ}
  (h : s.HoldsVec b.1 b.2 (2 * (N * N)) fun q ↦ if ∃ j < N, q = 2 * (j * N + j) then 1 else 0) :
  HoldsMatrix b 1 s

Full source on GitHub

Import NLAlib.Eigensolvers.Schur.Residual.