Converting jagged array to 2D array C#
问题 I'm trying to convert this function from Jagged Array to 2D array, and I'm not able to convert everything Original Function: public static double[][] InvertMatrix(double[][] A) { int n = A.Length; //e will represent each column in the identity matrix double[] e; //x will hold the inverse matrix to be returned double[][] x = new double[n][]; for (int i = 0; i < n; i++) { x[i] = new double[A[i].Length]; } /* * solve will contain the vector solution for the LUP decomposition as we solve * for