Diagonal matrices #
This file contains some results on the linear map corresponding to a
diagonal matrix (range, ker and rank).
Tags #
matrix, diagonal, linear map
theorem Matrix.proj_diagonal {n : Type u_1} [Fintype n] [DecidableEq n] {R : Type v} [CommSemiring R] (i : n) (w : n → R) :
theorem Matrix.diagonal_comp_single {n : Type u_1} [Fintype n] [DecidableEq n] {R : Type v} [CommSemiring R] (w : n → R) (i : n) :
toLin' (diagonal w) ∘ₗ LinearMap.single R (fun (x : n) => R) i = w i • LinearMap.single R (fun (x : n) => R) i
theorem Matrix.diagonal_toLin' {n : Type u_1} [Fintype n] [DecidableEq n] {R : Type v} [CommSemiring R] (w : n → R) :
theorem LinearMap.rank_diagonal {m : Type u_1} [Fintype m] {K : Type u} [Field K] [DecidableEq m] [DecidableEq K] (w : m → K) :