NLA-lib Explorer

Matrix.hadamard_eq_submatrix_kronecker

Library · theorem

The Hadamard product is the submatrix of the Kronecker product on the diagonal index pairs. [HornJohnson1991, Lemma 5.1.1].

Matrix.hadamard_eq_submatrix_kronecker.{u_1, u_2, u_3} {R : Type u_1} {m : Type u_2} {n : Type u_3}
  [Mul R] (A B : Matrix m n R) :
  A ⊙ B = (kroneckerMap (fun x1 x2 ↦ x1 * x2) A B).submatrix (fun i ↦ (i, i)) fun j ↦ (j, j)

Full source on GitHub

Import NLAlib.ForMathlib.LinearAlgebra.Matrix.Hadamard.