public static void global3DStructArray(GThread thread, ComplexFloat[, ,] result) { int x = thread.blockIdx.x; int y = thread.blockIdx.y; int z = 0; //while (z < ZSIZE) while (z < result.GetLength(2)) { result[x, y, z] = result[x, y, z].Add(result[x, y, z]); z++; } }
public static void global2DStructArray(GThread thread, ComplexFloat[,] result) { int x = thread.blockIdx.x; int y = 0; while (y < result.GetLength(1)) { result[x, y] = result[x, y].Add(result[x, y]); y++; } }