Matrix.trace_fromBlocks
Library · theorem
The trace of a block matrix is the sum of the traces of its diagonal blocks.
Matrix.trace_fromBlocks.{u_1, u_2, u_3} {R : Type u_1} [AddCommMonoid R] {m : Type u_2}
{n : Type u_3} [Fintype m] [Fintype n] (A : Matrix m m R) (B : Matrix m n R) (C : Matrix n m R)
(D : Matrix n n R) : (fromBlocks A B C D).trace = A.trace + D.traceImport NLAlib.ForMathlib.LinearAlgebra.Matrix.Trace.