NLA-lib Explorer

NLAlib.re_quadForm_hermitianPart

Library ยท theorem

The quadratic form of the Hermitian part is the real part of the quadratic form: \operatorname{Re}(\mathbf{x}^{\mathsf{H}}\mathbf{H}\mathbf{x}) = \operatorname{Re}(\mathbf{x}^{\mathsf{H}}\mathbf{A}\mathbf{x}) for \mathbf{H} = \tfrac{1}{2}(\mathbf{A} + \mathbf{A}^{\mathsf{H}}).

NLAlib.re_quadForm_hermitianPart.{u_1, u_2} {๐•œ : Type u_1} [RCLike ๐•œ] {n : Type u_2} [Fintype n]
  (A : Matrix n n ๐•œ) (x : n โ†’ ๐•œ) :
  RCLike.re (quadForm (hermitianPart A) x) = RCLike.re (quadForm A x)

Full source on GitHub

Import NLAlib.Matrix.Spectral.HermitianPart.