Traces of products of positive semidefinite matrices #
The product of positive semidefinite matrices need not be positive semidefinite, but its trace
is nonnegative. Factor one matrix as Cᴴ C and rotate the trace to the positive sandwich C A Cᴴ.
For complex matrices, nonnegativity in ComplexOrder also asserts that the imaginary part is zero.
Main results #
Matrix.PosSemidef.trace_mul_nonneg: the trace of a product of positive semidefinite matrices is nonnegative, over either the real or the complex numbers.Matrix.PosSemidef.trace_mul_eq_zero_iff: vanishing trace is equivalent to vanishing product.
theorem Matrix.PosSemidef.trace_mul_nonneg {ι : Type u_1} {𝕜 : Type u_2} [Fintype ι] [RCLike 𝕜] {A B : Matrix ι ι 𝕜} (hA : A.PosSemidef) (hB : B.PosSemidef) :
The trace of the product of two positive semidefinite matrices is nonnegative.
theorem Matrix.PosSemidef.trace_mul_eq_zero_iff {ι : Type u_1} {𝕜 : Type u_2} [Fintype ι] [RCLike 𝕜] {A B : Matrix ι ι 𝕜} (hA : A.PosSemidef) (hB : B.PosSemidef) :
Two positive semidefinite matrices have zero product exactly when it has zero trace.