Output D and R2 matrices