Products of matrix units #
Matrix.single_mul_single_eq_ite combines the matching-index and unequal-index product
identities into one formula for rectangular matrix units with arbitrary coefficients.
Only the shared index type needs to be finite. Matrix.smul_vecMulVec_single_single writes a
scaled outer product of two coordinate vectors as a matrix unit, and
Matrix.one_add_single_mul_one_add_single_of_ne multiplies two elementary matrices 1 + c Eᵢⱼ
and 1 + d Eₖₗ with j ≠ k, whose cross term vanishes. LinearMap.apply_eq_sum_sum_smul_single
expands a linear map on matrices along the matrix units.
The product of two matrix units vanishes unless their inner indices agree.
A scaled outer product of two coordinate vectors is a matrix unit.
Two elementary matrices 1 + c Eᵢⱼ and 1 + d Eₖₗ multiply without a cross term when the
column j of the first differs from the row k of the second.
A linear map on matrices is determined by its values on the matrix units: it sends A to the
sum of A i j • f (single i j 1).