1. A computer implemented method of compiling program code, wherein the program code includes an operation on an array of data elements stored in memory of a computer system, the method comprising: a) scanning the program code for an equation which may have recurring data points; b) replacing the equation with vectorized machine executable code, wherein the machine executable code comprises a nested loop and wherein the nested loop comprises: an exterior loop which decomposes the equation into a plurality of loops of length N, wherein N is an integer greater than one; a virtual interior loop for executing vector operations corresponding to the N length loop to form a result vector resident in memory, wherein the virtual interior loop includes a vector atomic memory operation (AMO) instruction.