Special Types of Matrices
Learn about tensors, matrix operations, singular value decomposition, and matrix determinants.
Identity matrix
An identity matrix is a square matrix where values are equal to 1 on the diagonal of the matrix and 0 everywhere else. Mathematically, it can be shown as follows:
This would look like the following:
Here,
The identity matrix gives the following nice property when multiplied with another matrix
Square diagonal matrix
A square diagonal matrix is a more general case of the identity matrix, where the values along the diagonal can take any value and the off-diagonal values are zeros:
Tensors
An
Here,
Tensor/matrix operations
We’ll discuss the tensor or matrix operation one by one in detail.
Transpose
Transpose is an important operation defined for matrices or tensors. For a matrix, the transpose is defined as follows:
Here,
An example of the transpose operation can be illustrated as follows:
After the transpose operation:
For a tensor, transpose can be seen as permuting the dimensions’ order. For example, let’s define a tensor
Now, one transpose operation (out of many) can be defined as follows:
Matrix multiplication
Matrix multiplication is another important operation that appears quite frequently in linear algebra.
Given the matrices
Here,