SAXPY
SAXPY: Given two matrices X and Y of equal sizes and a constant A, saxpy(Y,X,A) is given as follows. For every element i in X and Y, Y[i] = Y[i] + A * X[i]
Code Snippet //sx := first array with n number of elements (float) //sy := second array with n number of elements (float) int n=1024000; float sa=2.50,sx,sy;for (i=1; i<=n; i++){ sy[i] += sa * sx[i]; }