We denote the input matrix by D and use R and C to denote the set of rows and columns of D, respectively. A layout L(ℛ, C) of the matrix D is a two-dimensional matrix specified as follows: