NLAlib.frobNorm_sub_cfc_max_hermitianPart_sq
Library ยท theorem
The squared distance to the projection above a real floor a equals the squared skew-Hermitian norm plus the squared eigenvalue deficits of the Hermitian part \mathbf{H}: \|\mathbf{A}-\max(a,\cdot)(\mathbf{H})\|_{\mathsf{F}}^2 =\|\mathbf{A}-\mathbf{H}\|_{\mathsf{F}}^2+ \sum_{i=0}^{n-1}\max(a-\lambda_i(\mathbf{H}),0)^2\,. [Higham1988, Theorem 2.1]; [ChengHigham1998, Theorem 3.1]; generalized to either scalar field and any real floor. Adapted from tchen-research/NLAlib at 77514ce42a0e437d837797a063ac161f41022730, NLAlib.frobSq_sub_nearestPSD_eq.
NLAlib.frobNorm_sub_cfc_max_hermitianPart_sq.{u_1, u_2} {๐ : Type u_1} [RCLike ๐] {n : Type u_2}
[Fintype n] [DecidableEq n] (A : Matrix n n ๐) (a : โ) :
frobNorm (A - cfc (max a) (hermitianPart A)) ^ 2 =
frobNorm (A - hermitianPart A) ^ 2 +
โ i โ Finset.range (Fintype.card n), max (a - eigenvalue (hermitianPart A) i) 0 ^ 2Import NLAlib.Matrix.Functions.PositivePart.