Reading a book of physics I found the following definition of diagonal matrix:
$$A_{ij}= A_{ii}\delta_{ij}$$
I understand a diagonal matrix has only diagonal elements nonzero, but is the previous notation correct?
I'm somehow confused because if we choose $A_{ij}$ with $i\neq j $ (f.e $A_{12}$) then we need to use $A_{11}$ from the right side, which seems a bit forced.
This notation uses the Kronecker delta $\delta_{ij}$, which is $1$ when $i=j$ and $0$ otherwise $($so, $0$ outside the diagonal$)$.
Albeit correct, I must say this is a very lazy definition of diagonal matrix.