Optimization, Algorithms, Math, Engineering, Computer Science.
and columns. Diagonal matrices: A diagonal matrix is a square matrix that has all zeros except for the diagonal elements. Identity matrices: An identity matrix is a square matrix that has all ones on the diagonal and zeros elsewhere. Triangular matrices: A triangular matrix is a matrix that has all