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.
Equations
Instances For
See also single_eq_updateRow_zero and single_eq_updateCol_zero.
Matrix.single as a bundled additive map.
Equations
Instances For
Matrix.single as a bundled linear map.
Equations
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
Instances For
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}).