Off diagonal elements of Matrix

I do not care right now. I am just interested in the 2D case!

EDIT: Sorry, I should have mentioned that!