Pass a pointer to the array. It doesn't matter how many dimensions it has, arrays are contiguous.
Well I know that arrays are contiguous On second inspection it was only a warning that gcc gave, but if I remember correctly VS wont compile unless you cast it, and tbh I'd rather not see any unnecessary warnings when i compile. Makes the real problems harder to find.