NLA-lib Explorer

NLAlib.gramDefect

Library 路 def

The Gram defect on the support of \mathbf{Q}: the matrix \mathbf{Q}^{\mathsf{H}}\mathbf{Q} - \operatorname{diag}(\mathbf{s}), where s_j = 0 if column j of \mathbf{Q} is zero and s_j = 1 otherwise. It is zero exactly when the nonzero columns of \mathbf{Q} are orthonormal, and it is \mathbf{Q}^{\mathsf{H}}\mathbf{Q} - \mathbf{I} when no column is zero.

NLAlib.gramDefect.{u_1, u_2, u_3} {饾暅 : Type u_1} [RCLike 饾暅] {m : Type u_2} {喂 : Type u_3}
  [Fintype m] [DecidableEq 喂] (Q : Matrix m 喂 饾暅) : Matrix 喂 喂 饾暅

Full source on GitHub

Import NLAlib.Matrix.Perturbation.BasisExtension.