Added throws to Mat.diag(...)