Jump to content

Matrix/R/Mapping/Example

From Wikiversity

Let an m×n-matrix

(a11a12…a1na21a22…a2n⋮⋮⋱⋮am1am2…amn)

be given, where the entries aij are real numbers. Such a matrix defines a mapping

φ:ℝn⟶ℝm,

by sending an n-tuple x=(x1x2⋮xn)∈ℝn to the m-tuple

φ(x)=(a11a12…a1na21a22…a2n⋮⋮⋱⋮am1am2…amn)(x1x2⋮xn)=(a11x1+a12x2+⋯+a1nxna21x1+a22x2+⋯+a2nxn⋮am1x1+am2x2+⋯+amnxn)=(∑j=1na1jxj∑j=1na2jxj⋮∑j=1namjxj).

The i-th component of the image vector is

yi=(ai1,ai2,…,ain)(x1x2⋮xn)=∑j=1naijxj.

So one has to apply the i-th row of the matrix to the column vector x in the described way.