math: fix declarations regarding matrix diagonals
Merge pull request #84 from Waldteufel/matrix-diagonal-rename

math: fix declarations regarding matrix diagonals