Which of the following describes a diagonal matrix?
A matrix where all entries are zero.
A matrix where all entries are equal.
A square matrix where all entries outside the main diagonal are zero.
A matrix where the sum of each row is 1.