Mapping array

Hi everyone, i got problem how to map this array to one D as we know in CUDA we only can use 1D array. My array is like this:

Inputs[0][1] = 0.21

how to change this to one D??.T try so many times and it still got error.I really need help for this code.

const unsigned int HEIGHT = 10;
const unsigned int WIDTH = 20;
float inputs[HEIGHT][WIDTH];
inputs[y][x] = 0.21;

can be changed to:

const unsigned int HEIGHT = 10;
const unsigned int WIDTH = 20;
float inputs[HEIGHT*WIDTH];
inputs[WIDTH*y + x] = 0.21;