Matrices with a single non-zero element. #
This file provides Matrix.single. The matrix Matrix.single i j c has c
at position (i, j), and zeroes elsewhere.
single i j a is the matrix with a in the i-th row, j-th column,
and zeroes elsewhere.
Instances For
See also single_eq_updateRow_zero and single_eq_updateCol_zero.
Matrix.single as a bundled additive map.
Equations
- Matrix.singleAddMonoidHom i j = { toFun := Matrix.single i j, map_zero' := ⋯, map_add' := ⋯ }
Instances For
Matrix.single as a bundled linear map.
Equations
- Matrix.singleLinearMap R i j = { toFun := (↑(Matrix.singleAddMonoidHom i j)).toFun, map_add' := ⋯, map_smul' := ⋯ }
Instances For
Additive maps from finite matrices are equal if they agree on the standard basis.
See note [partially-applied ext lemmas].
Linear maps from finite matrices are equal if they agree on the standard basis.
See note [partially-applied ext lemmas].
Families of linear maps acting on each element are equivalent to linear maps from a matrix.
This can be thought of as the matrix version of LinearMap.lsum.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Alias of Matrix.liftLinear_single.
The center of Matrix n n α is equal to the image of the center of α under scalar n.
For a commutative semiring R, the center of Matrix n n R is the range of scalar n
(i.e., the span of {1}).