Translate/shift ndarrays