Main diagonal
= Main diagonal
{wiki=Main_diagonal}
The main diagonal, also known as the primary diagonal or leading diagonal, refers to the set of entries in a square matrix that run from the top left corner to the bottom right corner. In mathematical terms, for an \\( n \\times n \\) matrix \\( A \\), the main diagonal consists of the elements \\( A\[i\]\[j\] \\) where \\( i = j \\).