NLA-lib Explorer

NLAlib.Cholesky.mul_add_inj

Library · theorem

The offset of an entry of a matrix stored by columns determines the column and the row.

NLAlib.Cholesky.mul_add_inj {n c c' r r' : ℕ} (hr : r < n) (hr' : r' < n)
  (h : c * n + r = c' * n + r') : c = c' ∧ r = r'

Full source on GitHub

Import NLAlib.Matrix.Factorizations.Cholesky.Routine.