🏗️ ΘρϵηΠατπ🚧 (under construction)

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,cN1 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,cN1 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 cN1 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(R))

Column Matrix
Any matrix CMr×1(T) for some rN1 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(R)).

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,cBN1 such that cA=rB and that we have two matrices A,BMrA×cA(R),MrB×cB(R), 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: f([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 xR, then we define the following function pack:RM1×1(R) as pack(x):=[x]
Unpacking Function
Suppose that [x]M1×1(R), then we define the following function unpack:RM1×1(R) as unpack([x]):=x
The Packing and Unpacking Functions are Inverses
TODO
One by one Matrices are Isomorphic to R
R and M1,1(R) are isomorphic.
Row and Column Matrices are Isomorphic to Rn
Suppose that nN1, then M1,n(R) and Mn,1(R) are isomorphic to Rn
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()
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)
Complex Transpose
We denote the complex transpose of a matrix as A*:=A¯T
Hermitian Matrix
A matrix AMn×n(C) 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 A*A=AA*