Reshaping matrices #
This defines the identitication between Mₙₓₘ(R)
and Rⁿˣᵐ
(see matrix.reshape
), and shows some obvious properties of this identification.
identifies matrices $M_{I\times J}(R)$ with $R^{I \times J}$, this is given by $\varrho (x)_{(i,j)} = x_{ij}$
Equations
- matrix.reshape = (linear_equiv.curry R I J).symm
theorem
matrix.reshape_one
{R : Type u_1}
{I : Type u_2}
[semiring R]
[decidable_eq I]
(x y : I) :
⇑matrix.reshape 1 (x, y) = ite (x = y) 1 0