diagonaalimatriisille
A diagonaalimatriisi is a square matrix where all the entries outside of the main diagonal are zero. The main diagonal consists of the elements from the top-left corner to the bottom-right corner of the matrix. A matrix D is a diagonaalimatriisi if D_ij = 0 for all i ≠ j, where D_ij represents the element in the i-th row and j-th column. The elements on the main diagonal, D_ii, can be any scalar value, including zero.
Diagonaalimatriisit have several useful properties in linear algebra. For instance, the determinant of a diagonaalimatriisi is
Eigenvalues of a diagonaalimatriisi are its diagonal entries, and the corresponding eigenvectors are the standard basis