I saw this other question but he's operating only on one index. I need to operate on both column and row indices without using a for loop. Is there a way to do this:
Let M (a,b) be the matrix and the size be the one in the parentheses. I want to manipulate each element as exp( (m-n)^2)