fc = Compile[{{xx, _Real, 0}, {yy, _Real, 0}}, #,
CompilationTarget -> "C",
Parallelization -> True, RuntimeAttributes -> {Listable}] &@
With[{x = xx - mx, y = yy - my},
Sum[Exp[-(x^2 + y^2)*1.1]*
Sin[20 (x^2 + y^2)], {mx, {0, 2}}, {my, {0, 2}}]
];
data = Outer[List, #, #] &@Table[x, {x, -1, 3, .001}];
Image[Abs[fc @@ Transpose[data, {3, 2, 1}]]]