Added Mat functions to Diag