Status: IN
The function assumes `mat` is a non-empty square matrix and performs no shape or type validation.
Source: entries/2026/06/06/matrix-diagonal-sum-solution.md
JSON