Function that prints the array
static void printArray ( double [ , ] arr , int n ) { for ( int i = 0 ; i < GetRow ( arr , 0 ) . GetLength ( 0 ) ; i ++ ) { Console . Write ( " { 0 : F4 } ▁ " , arr [ n , i ] ) ; } } public static double [ ] GetRow ( double [ , ] matrix , int row ) { var rowLength = matrix . GetLength ( 1 ) ; var rowVector = new double [ rowLength ] ; for ( var i = 0 ; i < rowLength ; i ++ ) rowVector [ i ] = matrix [ row , i ] ; return rowVector ; }