Matrices
Learn about matrices and their usage in analyzing linear systems.
What is a matrix?
A matrix is a two-dimensional array of objects. An element of a matrix can be an object of any type. However, most problems in data science need matrices with only real numbers as their elements. Therefore, we’ll also work with matrices that only have real numbers as their elements, unless stated otherwise. A matrix is typically denoted as an uppercase letter with subscripts. The subscripts describe the order of the matrix. For example, a matrix of order can be denoted as . Here, is the number of rows and is the number of columns. For example, a two-dimensional array with three rows and two columns is denoted as .
An element of a matrix is denoted by where and are the respective row and column indices. So, a generic representation of a matrix is as follows:
Types of matrices
Matrices are characterized into different types based on certain properties. Below is a list of the most common ones.
Row matrix
A matrix with only one row is called a row matrix, like the one below:
Column matrix
A matrix with only one column is called a column matrix, like the one below:
...