Identity matrix
A matrix is a rectangular array of numbers or other data, usually arranged in rows and columns. A matrix can have any number of rows and columns. The most common type of matrix is the two-dimensional matrix, which has two dimensions (rows and columns). In mathematics and science, matrices are used to represent linear transformations, such as rotation or reflection or for various other applications such as solving systems of linear equations. In computer graphics, they are used to manipulate coordinates and vectors. 3 The dot product of two vectors is a scalar quantity that measures the extent to which the two vectors are pointing in the same direction. Let’s say that we multiply the matrix I with a vector x1. x2 and x3. The first entry will be the dot product between 1, 0, 0 and x1, x2, x3. If you want this vector, it is written i hat, OK? So, if you take the dot product of i hat with itself, you will get the x component. The first component of the vector will be x1. That is equal to 1 times x1 plus 0, where 0 is the zero vector. Similarly, if we do the dot product between two vectors, we get 0 plus x2 plus 0. So this gives us x2 Here we get x3. OK? It makes sense. Also, when put a matrix here, I will get back the same matrix. Now, as you can see. the identity matrix in size n by n. so it’s an n-by-n thing with 1s on the diagonal and Os everywhere else. OK? You can put a 1 at every diagonal position and 0 as well. Then if you multiply that by a vector, you will get the same vector back. [[1,0,0],[0,1,0],[0,0,1]] [[x_1][x_2][x_3]]=[[x_1][x_2][x_3]] In genereal: ln⊥t=[0 ]