Is this even possible? It would save me a whole bunch of search-replace in my code.
My alternative is to replace like this:

H[i][j] = H[j][i];

to

setValue(H, i, j, getValue(H, j, i));