Is there any function help me

i have an 1D float array on GPU memory, it represents an 2D image, but the (0,0) point is the center of image, i want move it to top left corner, any method to do with the 1D array? any suggestion is expected, please!
1685500307176

Please describe better, how the 1D float array maps to a 2D image. Are you talking about numbers or visualization? Or is it about Fourier transform (there you often have those kinds of shifts between different conventions).