double [] [] is a gear array. You probably mean double [,], which is a two-dimensional array.
Initializing a two-dimensional array:
double[,] matrix = new double[3,2] = {{1,2} {3,4}, {4,5}}
You already have examples for initializing gear arrays, from other answers.
The difference between jagged and true multidimensional arrays in practice is that jagged arrays are arrays of arrays, so they may not be rectangular, that is, a matrix, therefore, jagged:
double[][] jagged = new double[2] { new double[4], new double[2] };
The way they are laid out in memory is also different. A multidimensional array is the only reference to contiguous memory space. Hard arrays are a true array of arrays.
Read more about it here.
source share