math: remove old declaration of matrix_diagonal

The function defined further down is matrix_from_diagonal, not matrix_diagonal (probably left over from some renaming).