ΘρϵηΠατπ

Matrices

Matrix

A matrix is a collection of numbers that can be indexed in a particular way, this indexing mimics a two dimensional grid. The dimensions of a matrix are stated as r×c where r,c1 when it has m rows and n columns.

Suppose that A is a matrix, then we can access the value at the i-th row and j-th column by writing Ai,j, we can graphically represent this information by introducing variables for the coefficients and writing them like this:

A=[a1,1a1,2a1,na2,1a2,2a2,nam,1am,2am,n]

Matrices are denoted by capital letters such as A,B,M,N.

Set of Matrices
Suppose that r,c1 then we denote the set of all r×c matrices with cofficients from the set T as Mr×c(T)
Row Matrix
Any matrix RM1×c(T) for some c1 is known as a row matrix.
Row of a Matrix

Suppose that A is a matrix, then if we want to extract the ith row of A we can write Ai,.

Note that this is a function of the form Mr×c(T)M1×c(T)
The notation Ai, intends to mimic freezing at a certain row and then sweeping over all columns.
Row Matrix Representation
Given a matrix A, there is an associated row matrix representation, of the following form
A=[A1,A2,Am,]

Where the arrows are there to remind you that they expand horizontally. Also observe that this matrix is an element of Mr×1(M1×c())

Column Matrix
Any matrix CMr×1(T) for some r1 is known as a row matrix.

We will denote column or row matrices with a lower case boldfaced character, like 𝐱

Column of a Matrix

Suppose that A is a matrix, then if we want to extract the j-th row of A we can write A|,j.

Note that this is a function of the form Mr×c(T)Mr×1(T)
The | denotes that the row variable may be varied vertically, while the column index is fixed in place. If we want to represent the matrix as columns graphically, we may do so like this
Column Matrix Representation
Given a matrix A, there is an associated column matrix representation, of the following form A=[A|,1A|,2A|,n]

Where the arrows are there to remind you that they expand graphically expand vertically. Also observe that this matrix is an element of M1×c(Mr×1()).

We can connect some of the previous definitions here to say that R is a column matrix whose entries are row matrices.
Matrix Multiplication

Suppose rA,cA,rB,cB1 such that cA=rB and that we have two matrices A,BMrA×cA(),MrB×cB(), defined as

A=[a1,1a1,2a1,cAa2,1a2,2a2,cAarA,1arA,2arA,cA],B=[b1,1b1,2b1,cBb2,1b2,2b2,cBbrB,1brB,2brB,cB]

Then we define the matrix multiplication of A and B as the matrix PMrA×cB

P=[c1,1c1,2c1,cPc2,1c2,2c2,cPcrP,1crP,2crP,cP]

Where:

ci,j:=ai,1b1,j+ai,2b2,j++ai,cAbcA,j=k=1cAai,kbk,j
Matrix Functions
Suppose that 𝐌Mr,c(T) and that f:TS is a function, then we augment this function to 𝐟:Mr,c(T)Mr,c(S) as follows: 𝐟([m1,1m1,2m1,cMm2,1m2,2m2,cMmrM,1mrM,2mrM,cM])=[f(m1,1)f(m1,2)f(m1,cM)f(m2,1)f(m2,2)f(m2,cM)f(mrM,1)f(mrM,2)f(mrM,cM)]
Packing Function
Suppose that x, then we define the following function pack:M1×1() as pack(x):=[x]
Unpacking Function
Suppose that [x]M1×1(), then we define the following function unpack:M1×1() as unpack([x]):=x
The Packing and Unpacking Functions are Inverses
TODO
One by one Matrices are Isomorphic to R
and M1,1() are isomorphic.
Row and Column Matrices are Isomorphic to n
Suppose that n1, then M1,n() and Mn,1() are isomorphic to n
Nested Matrix Multiplication Unpacking

Given two matrices AMa×b()BMc×d() then product is equal to

unpack([A1,B|,1A1,B|,2A1,B|,dA2,B|,1A2,B|,2A2,B|,dAa,B|,1Aa,B|,2Aa,B|,d])

With Ai, B|,j and unpack is being used as a matrix function

Matrix Multiplication with Rows and Columns

Suppose that A,B are matrices, and that AR,BC are their row matrix and column matrix representations, then

unpack(ARBC)=AB where unpack is being used as a matrix function
column matrix multiplication
suppose that C=[c1c2ck] is a column matrix and MMn×k(), then
MC=i=1kciM|,i}Mn×1()

By the definition of matrix multiplication the answer should be equal to

[m1,1m1,2m1,km2,1m2,2,m2,kmj,1mj,2mj,k] [c1c2ck] =[c1m1,1+c2m1,2++ckm1,kc1m2,1+c2m2,2++ckm2,kc1mj,1+c2mj,2++ckmj,k] =c1M|,1}+c2M|,2}++ckM|,k}Mn×1()
unit column matrix
ei is a column matrix who's i-th row is 1 and the rest are 0
column extraction
suppose MMj×k then the n-th column of M is given by M multiplied by en (where 1nk)

Due to the way that column matrix multiplication works, we can see that Men=i=0k(en)iM|,i}=M|,n} this is clear since only the n-th component of en is 1 and the rest are 0.

Complex Transpose
We denote the complex transpose of a matrix as A:=AT
Hermitian Matrix
A matrix AMn×n() is said to be hermitian diff A=A where we've applied the complex-transpose

Note that the a Hermitian Matrix is also called symmetric or self-adjoint.

Normal
We say that a matrix is normal if AA=AA