Matrices are the building blocks of data science. ... The matrix in its most basic form is a collection of numbers arranged in a rectangular or array-like fashion. This can represent an image, or a network or even an abstract structure. A rectangular array of 3 rows and 4 columns.