Matrices A matrix is a 2-dimensional array of values (rows and columns). In numpy, matrices are represented using 2D arrays.