I have to build a jagged array of 2D arrays but I get the error "A nested array initializer is expected". My code is similar to this:
double[,] a1 = new double[,] { { 1 } };
double[,] a2 = new double[,] { { 2 } };
double[,] a3 = new double[,] { { 3 } };
double[,][] b = new double[,][] { a1, a2, a3 };
Why do I get that error? How can I solve the problem?