NLA-lib Explorer

NLAlib.frobNorm_blockDiagonal_sq

Library ยท theorem

The squared Frobenius norm of a block diagonal matrix is the sum over the blocks: \|\operatorname{diag}(\mathbf{M}_1, \dots, \mathbf{M}_k)\|_{\mathsf{F}}^2 = \sum_i \|\mathbf{M}_i\|_{\mathsf{F}}^2.

NLAlib.frobNorm_blockDiagonal_sq.{u_1, u_3, u_4, u_7} {๐•œ : Type u_1} [RCLike ๐•œ] {m : Type u_3}
  {n : Type u_4} [Fintype m] [Fintype n] {o : Type u_7} [Fintype o] [DecidableEq o]
  (M : o โ†’ Matrix m n ๐•œ) : frobNorm (blockDiagonal M) ^ 2 = โˆ‘ k, frobNorm (M k) ^ 2

Full source on GitHub

Import NLAlib.Matrix.Norms.Block.