add diag methods for pdmats