In mathematics, a matrix is a group of complex numbers or real numbers arranged in a rectangular array, which originated from a square matrix composed of coefficients and constants of equations. This concept was first put forward by British mathematician Kelly in19th century. Matrix is a common tool in applied mathematics such as advanced algebra and statistical analysis. The customized algorithm for specific matrix structures (such as sparse matrix and near-angle matrix) speeds up the operation speed in finite element method and other calculations.