NLAlib.re_quadForm_fromBlocks
Library · theorem
The real part of the quadratic form of a block matrix with off-diagonal blocks \mathbf{B} and \mathbf{B}^{\mathsf{H}} (the diagonal blocks are arbitrary): \operatorname{Re}\left(\begin{\mathbf{b}matri\mathbf{x}} \mathbf{x} \\ \mathbf{y} \end{\mathbf{b}matri\mathbf{x}}^{\mathsf{H}} \begin{\mathbf{b}matri\mathbf{x}} \mathbf{A} & \mathbf{B} \\ \mathbf{B}^{\mathsf{H}} & \mathbf{C} \end{\mathbf{b}matri\mathbf{x}} \begin{\mathbf{b}matri\mathbf{x}} \mathbf{x} \\ \mathbf{y} \end{\mathbf{b}matri\mathbf{x}}\right) = \operatorname{Re}(\mathbf{x}^{\mathsf{H}}\mathbf{A}\mathbf{x}) + 2\operatorname{Re}(\mathbf{x}^{\mathsf{H}}\mathbf{B}\mathbf{y}) + \operatorname{Re}(\mathbf{y}^{\mathsf{H}}\mathbf{C}\mathbf{y})\,.
NLAlib.re_quadForm_fromBlocks.{u_1, u_2, u_3} {𝕜 : Type u_1} [RCLike 𝕜] {m : Type u_2}
{n : Type u_3} [Fintype m] [Fintype n] (A : Matrix m m 𝕜) (B : Matrix m n 𝕜) (C : Matrix n n 𝕜)
(x : m → 𝕜) (y : n → 𝕜) :
RCLike.re (quadForm (fromBlocks A B Bᴴ C) (x ⊕ᵥ y)) =
RCLike.re (quadForm A x) + 2 * RCLike.re (star x ⬝ᵥ B *ᵥ y) + RCLike.re (quadForm C y)Import NLAlib.Matrix.Inequalities.Block.